See 
<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/6793/display/redirect>

Changes:


------------------------------------------
[...truncated 795.47 KB...]
    --flink_job_server_jar "$FLINK_JOB_SERVER_JAR" \
    --parallelism 1 \
    --environment_type DOCKER \
    --environment_options "docker_container_image=$PYTHON_CONTAINER_IMAGE" \
    --flink_master "localhost:$FLINK_PORT" \
    --flink_submit_uber_jar \
  ) || TEST_EXIT_CODE=$? # don't fail fast here; clean up before exiting
else
  (python -c "$PIPELINE_PY" \
    --runner FlinkRunner \
    --flink_job_server_jar "$FLINK_JOB_SERVER_JAR" \
    --parallelism 1 \
    --environment_type DOCKER \
    --environment_options "docker_container_image=$PYTHON_CONTAINER_IMAGE" \
    --flink_master "localhost:$FLINK_PORT" \
    --flink_submit_uber_jar \
    --save_main_session
  ) || TEST_EXIT_CODE=$? # don't fail fast here; clean up before exiting
fi
Starting Flink mini cluster listening on port 33647
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.cpu.cores required for local 
execution is not set, setting it to the maximal possible value.
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.memory.task.heap.size required for 
local execution is not set, setting it to the maximal possible value.
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.memory.task.off-heap.size required 
for local execution is not set, setting it to the maximal possible value.
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.memory.network.min required for 
local execution is not set, setting it to its default value 64 mb.
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.memory.network.max required for 
local execution is not set, setting it to its default value 64 mb.
Jul 27, 2023 6:15:50 PM 
org.apache.flink.runtime.taskexecutor.TaskExecutorResourceUtils 
setConfigOptionToDefaultIfNotSet
INFO: The configuration option taskmanager.memory.managed.size required for 
local execution is not set, setting it to its default value 128 mb.
Jul 27, 2023 6:15:50 PM org.apache.flink.runtime.minicluster.MiniCluster start
INFO: Starting Flink Mini Cluster
INFO:root:Using provided Python SDK container image: 
apache/beam_python3.8_sdk:2.50.0.dev
INFO:root:Python SDK container image set to 
"apache/beam_python3.8_sdk:2.50.0.dev" for Docker environment
INFO:apache_beam.runners.portability.fn_api_runner.translations:====================
 <function pack_combiners at 0x7f7247e85430> ====================
INFO:apache_beam.runners.portability.fn_api_runner.translations:====================
 <function lift_combiners at 0x7f7247e854c0> ====================
INFO:apache_beam.runners.portability.fn_api_runner.translations:====================
 <function sort_stages at 0x7f7247e85c10> ====================
INFO:apache_beam.runners.portability.flink_runner:Adding HTTP protocol scheme 
to flink_master parameter: http://localhost:33647
Jul 27, 2023 6:15:52 PM org.apache.flink.runtime.minicluster.MiniCluster start
INFO: Starting Metrics Registry
Jul 27, 2023 6:15:52 PM org.apache.flink.runtime.metrics.MetricRegistryImpl 
<init>
INFO: No metrics reporter configured, no metrics will be exposed/reported.
Jul 27, 2023 6:15:52 PM org.apache.flink.runtime.minicluster.MiniCluster start
INFO: Starting RPC Service(s)
Jul 27, 2023 6:15:52 PM org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools 
startLocalActorSystem
INFO: Trying to start local actor system
INFO:apache_beam.runners.portability.abstract_job_service:Artifact server 
started on port 35583
INFO:apache_beam.runners.portability.abstract_job_service:Running job 
'job-3cc7b31d-5078-4ca6-b255-8eb7c6963a66'
Jul 27, 2023 6:15:54 PM akka.event.slf4j.Slf4jLogger$$anonfun$receive$1 
applyOrElse
INFO: Slf4jLogger started
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools 
startActorSystem
INFO: Actor system started at akka://flink
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools 
startLocalActorSystem
INFO: Trying to start local actor system
Jul 27, 2023 6:15:55 PM akka.event.slf4j.Slf4jLogger$$anonfun$receive$1 
applyOrElse
INFO: Slf4jLogger started
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.rpc.akka.AkkaBootstrapTools 
startActorSystem
INFO: Actor system started at akka://flink-metrics
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.rpc.akka.AkkaRpcService 
startServer
INFO: Starting RPC endpoint for 
org.apache.flink.runtime.metrics.dump.MetricQueryService at 
akka://flink-metrics/user/rpc/MetricQueryService .
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.blob.BlobServer <init>
INFO: Created BLOB server storage directory 
/tmp/minicluster_da73a328ab9638e25ba8baa7be67d069/blobStorage
Jul 27, 2023 6:15:55 PM org.apache.flink.runtime.blob.BlobServer <init>
INFO: Started BLOB server at 0.0.0.0:45823 - max concurrent requests: 50 - max 
backlog: 1000
Jul 27, 2023 6:15:56 PM org.apache.hadoop.util.NativeCodeLoader <clinit>
WARNING: Unable to load native-hadoop library for your platform... using 
builtin-java classes where applicable
Jul 27, 2023 6:15:56 PM 
org.apache.flink.runtime.security.token.KerberosDelegationTokenManagerFactory 
create
INFO: Cannot use kerberos delegation token manager no valid kerberos 
credentials provided.
Jul 27, 2023 6:15:56 PM org.apache.flink.runtime.blob.AbstractBlobCache <init>
INFO: Created BLOB cache storage directory 
/tmp/minicluster_da73a328ab9638e25ba8baa7be67d069/blobStorage
Jul 27, 2023 6:15:56 PM org.apache.flink.runtime.blob.AbstractBlobCache <init>
INFO: Created BLOB cache storage directory 
/tmp/minicluster_da73a328ab9638e25ba8baa7be67d069/blobStorage
Jul 27, 2023 6:15:56 PM org.apache.flink.runtime.minicluster.MiniCluster 
startTaskManagers
INFO: Starting 1 TaskManager(s)
Jul 27, 2023 6:15:56 PM org.apache.flink.runtime.taskexecutor.TaskManagerRunner 
startTaskManager
INFO: Starting TaskManager with ResourceID: b9e4b76d-7805-4866-b3b6-badacedf258b
Jul 27, 2023 6:15:56 PM 
org.apache.flink.runtime.taskexecutor.TaskManagerServices checkTempDirs
INFO: Temporary file directory '/tmp': total 969 GB, usable 550 GB (56.76% 
usable)
Jul 27, 2023 6:15:56 PM org.apache.flink.runtime.io.disk.iomanager.IOManager 
<init>
INFO: Created a new FileChannelManager for spilling of task related data to 
disk (joins, sorting, ...). Used directories:
        /tmp/flink-io-c2a48e24-e6e1-42d9-88d0-a371af2ee7ad
Traceback (most recent call last):
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connection.py";,>
 line 203, in _new_conn
    sock = connection.create_connection(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/util/connection.py";,>
 line 85, in create_connection
    raise err
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/util/connection.py";,>
 line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connectionpool.py";,>
 line 790, in urlopen
    response = self._make_request(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connectionpool.py";,>
 line 496, in _make_request
    conn.request(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connection.py";,>
 line 395, in request
    self.endheaders()
  File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
    self.send(msg)
  File "/usr/lib/python3.8/http/client.py", line 951, in send
    self.connect()
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connection.py";,>
 line 243, in connect
    self.sock = self._new_conn()
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connection.py";,>
 line 218, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection 
object at 0x7f7246c951f0>: Failed to establish a new connection: [Errno 111] 
Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/adapters.py";,>
 line 486, in send
    resp = conn.urlopen(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/connectionpool.py";,>
 line 844, in urlopen
    retries = retries.increment(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/urllib3/util/retry.py";,>
 line 515, in increment
    raise MaxRetryError(_pool, url, reason) from reason  # type: 
ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', 
port=33647): Max retries exceeded with url: /v1/jars/upload (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f7246c951f0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 31, in <module>
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/pipeline.py";,>
 line 577, in run
    return self.runner.run_pipeline(self, self._options)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/flink_runner.py";,>
 line 45, in run_pipeline
    return super().run_pipeline(pipeline, options)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/portable_runner.py";,>
 line 448, in run_pipeline
    job_service_handle.submit(proto_pipeline)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/portable_runner.py";,>
 line 117, in submit
    return self.run(prepare_response.preparation_id)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/portable_runner.py";,>
 line 244, in run
    run_response = self.job_service.Run(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/abstract_job_service.py";,>
 line 120, in Run
    self._jobs[job_id].run()
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/flink_uber_jar_job_server.py";,>
 line 152, in run
    self._flink_jar_id = self.post(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/flink_uber_jar_job_server.py";,>
 line 142, in post
    return self.request(requests.post, path, **kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/apache_beam/runners/portability/flink_uber_jar_job_server.py";,>
 line 130, in request
    response = method(url, **kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/api.py";,>
 line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/api.py";,>
 line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/sessions.py";,>
 line 589, in request
    resp = self.send(prep, **send_kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/sessions.py";,>
 line 703, in send
    r = adapter.send(request, **kwargs)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/build/gradleenv/2022703442/lib/python3.8/site-packages/requests/adapters.py";,>
 line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', 
port=33647): Max retries exceeded with url: /v1/jars/upload (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7f7246c951f0>: Failed to establish a new connection: [Errno 111] Connection 
refused'))
Jul 27, 2023 6:15:56 PM 
org.apache.flink.runtime.io.network.NettyShuffleServiceFactory 
createNettyShuffleEnvironment
INFO: Created a new FileChannelManager for storing result partitions of 
BLOCKING shuffles. Used directories:
        /tmp/flink-netty-shuffle-5c353448-302f-4229-99c2-69ec2b9a0788
Jul 27, 2023 6:15:57 PM 
org.apache.flink.runtime.io.network.buffer.NetworkBufferPool <init>
INFO: Allocated 64 MB for network buffer pool (number of memory segments: 2048, 
bytes per segment: 32768).
Jul 27, 2023 6:15:57 PM 
org.apache.flink.runtime.io.network.NettyShuffleEnvironment start
INFO: Starting the network environment and its components.
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.taskexecutor.KvStateService 
start
INFO: Starting the kvState service and its components.
Jul 27, 2023 6:15:57 PM org.apache.flink.configuration.Configuration 
loggingFallback
INFO: Config uses fallback configuration key 'akka.ask.timeout' instead of key 
'taskmanager.slot.timeout'
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.rpc.akka.AkkaRpcService 
startServer
INFO: Starting RPC endpoint for 
org.apache.flink.runtime.taskexecutor.TaskExecutor at 
akka://flink/user/rpc/taskmanager_0 .
Jul 27, 2023 6:15:57 PM 
org.apache.flink.runtime.taskexecutor.DefaultJobLeaderService start
INFO: Start job leader service.
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.filecache.FileCache <init>
INFO: User file cache uses directory 
/tmp/flink-dist-cache-01bf4f85-ed03-40ba-bbb7-d2fabbb731da
Jul 27, 2023 6:15:57 PM org.apache.flink.configuration.Configuration 
loggingFallback
INFO: Config uses fallback configuration key 'rest.port' instead of key 
'rest.bind-port'
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.rest.RestServerEndpoint start
INFO: Starting rest endpoint.

kill %1 || echo "Failed to shut down Flink mini cluster"

rm -rf "$ENV_DIR"
Jul 27, 2023 6:15:57 PM 
org.apache.flink.runtime.state.TaskExecutorLocalStateStoresManager shutdown
INFO: Shutting down TaskExecutorLocalStateStoresManager.
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.filecache.FileCache shutdown
INFO: removed file cache directory 
/tmp/flink-dist-cache-01bf4f85-ed03-40ba-bbb7-d2fabbb731da
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.io.disk.FileChannelManagerImpl 
lambda$getFileCloser$0
INFO: FileChannelManager removed spill file directory 
/tmp/flink-io-c2a48e24-e6e1-42d9-88d0-a371af2ee7ad
Jul 27, 2023 6:15:57 PM 
org.apache.flink.runtime.state.TaskExecutorStateChangelogStoragesManager 
shutdown
INFO: Shutting down TaskExecutorStateChangelogStoragesManager.
Jul 27, 2023 6:15:57 PM org.apache.flink.runtime.blob.AbstractBlobCache close
INFO: Shutting down BLOB cache

if [[ "$TEST_EXIT_CODE" -eq 0 ]]; then
  echo ">>> SUCCESS"
else
  echo ">>> FAILURE"
fi
>>> FAILURE
exit $TEST_EXIT_CODE

> Task 
> :sdks:python:test-suites:portable:py38:testUberJarFlinkRunnerSaveMainSession 
> FAILED

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/test-suites/portable/common.gradle'>
 line: 411

* What went wrong:
Execution failed for task 
':sdks:python:test-suites:portable:py38:testUberJarFlinkRunner'.
> Process 'command 'sh'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_PortableJar_Flink/ws/src/sdks/python/test-suites/portable/common.gradle'>
 line: 411

* What went wrong:
Execution failed for task 
':sdks:python:test-suites:portable:py38:testUberJarFlinkRunnerSaveMainSession'.
> Process 'command 'sh'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
==============================================================================

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

See 
https://docs.gradle.org/7.6.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 17m 27s
149 actionable tasks: 104 executed, 41 from cache, 4 up-to-date

Publishing build scan...
https://ge.apache.org/s/jifsvmdqidsaw

Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to