[ 
https://issues.apache.org/jira/browse/BEAM-12603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530959#comment-17530959
 ] 

Brian Hulette commented on BEAM-12603:
--------------------------------------

After 18 runs I got one relevant looking failure:
{code}
------------------------------------------------ Captured log call 
-------------------------------------------------
WARNING  root:environments.py:371 Make sure that locally built Python SDK 
docker image has Python 3.8 interpreter.                                        
                                                                              
ERROR    apache_beam.runners.worker.data_plane:data_plane.py:641 Failed to read 
inputs in the data plane.                                                       
                                                                        
Traceback (most recent call last):                                              
                                                                                
                                                                        
  File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/data_plane.py",
 line 634, in _read_inputs                                                      
                                         
    for elements in elements_iterator:                                          
                                                                                
                                                                        
  File 
"/usr/local/google/home/bhulette/.pyenv/versions/beam/lib/python3.8/site-packages/grpc/_channel.py",
 line 426, in __next__                                                          
                                             
    return self._next()                                                         
                                                                                
                                                                        
  File 
"/usr/local/google/home/bhulette/.pyenv/versions/beam/lib/python3.8/site-packages/grpc/_channel.py",
 line 809, in _next                                                             
                                             
    raise self                                                                  
                                                                                
                                                                        
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that 
terminated with:                                                                
                                                                          
        status = StatusCode.UNAVAILABLE                                         
                                                                                
                                                                        
        details = "Broken pipe"                                                 
                                    
        debug_error_string = 
"{"created":"@1651529196.891387421","description":"Error received from peer 
ipv6:[::1]:34715","file":"src/core/lib/surface/call.cc","file_line":903,"grpc_message":"Broken
 pipe","grpc_status":14}"        
>                                                                               
>                                     
ERROR    apache_beam.runners.worker.sdk_worker:sdk_worker.py:271 Error 
processing instruction bundle_58. Original traceback is           
                                                                 Traceback 
(most recent call last):                 
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/data_plane.py",
 line 487, in input_elements                            
                                                                     element = 
received.get(timeout=1)                                                         
                                                                         
                                                                   File 
"/usr/local/google/home/bhulette/.pyenv/versions/3.8.6/lib/python3.8/queue.py", 
line 178, in get                                                                
                                                                     raise 
Empty                                    
                                                                 _queue.Empty   
                                                                                
                                                                        
                                                                                
                                                                                
                                                                        
                                                                 During 
handling of the above exception, another exception occurred:                    
                                                                                
                                                                                
                                                                                
                                                                        
                                                                 Traceback 
(most recent call last):                 
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/sdk_worker.py",
 line 267, in _execute                                  
                                                                     response = 
task()                                                                          
                                                                        
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/sdk_worker.py",
 line 340, in <lambda>                                  
                                                                     lambda: 
self.create_worker().do_instruction(request), request)                          
                                                                           
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/sdk_worker.py",
 line 580, in do_instruction                            
                                                                     return 
getattr(self, request_type)(            
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/sdk_worker.py",
 line 618, in process_bundle                            
                                                                     
bundle_processor.process_bundle(instruction_id))                                
                                                                                
   
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/bundle_processor.py",
 line 984, in process_bundle                      
                                                                     for 
element in data_channel.input_elements(instruction_id,                          
                                                                               
                                                                   File 
"/usr/local/google/home/bhulette/working_dir/beam/sdks/python/apache_beam/runners/worker/data_plane.py",
 line 490, in input_elements
                                                                     raise 
RuntimeError('Channel closed prematurely.')                                     
                                                                             
                                                                 RuntimeError: 
Channel closed prematurely.                                                     
                                                                         
============================================= short test summary info 
==============================================
FAILED 
apache_beam/runners/portability/fn_api_runner/fn_runner_test.py::FnApiRunnerTestWithDisabledCaching::test_sdf_default_truncate_when_unbounded
================================ 1 failed, 336 passed, 40 skipped in 22.71 
seconds =================================
{code}

> Flaky: 
> apache_beam.runners.portability.fn_api_runner.fn_runner_test.FnApiRunnerTestWithGrpcAndMultiWorkers
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-12603
>                 URL: https://issues.apache.org/jira/browse/BEAM-12603
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core, test-failures
>            Reporter: Tyson Hamilton
>            Assignee: Yichi Zhang
>            Priority: P1
>              Labels: flake
>             Fix For: Not applicable
>
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> The 
> `apache_beam.runners.portability.fn_api_runner.fn_runner_test.FnApiRunnerTestWithGrpcAndMultiWorkers`
>  tests are flaky and causing precommit failures that seem similar.
> `test_pardo_windowed_side_inputs` : 
> [https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/4417/console]
> {code:java}
> 23:32:35 Exception in thread read_grpc_client_inputs:
> 23:32:35 Traceback (most recent call last):
> 23:32:35   File "/usr/lib/python3.8/threading.py", line 932, in 
> _bootstrap_inner
> 23:32:35     self.run()
> 23:32:35   File "/usr/lib/python3.8/threading.py", line 870, in run
> 23:32:35     self._target(*self._args, **self._kwargs)
> 23:32:35   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/apache_beam/runners/worker/data_plane.py",
>  line 587, in <lambda>
> 23:32:35     target=lambda: self._read_inputs(elements_iterator),
> 23:32:35   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/apache_beam/runners/worker/data_plane.py",
>  line 570, in _read_inputs
> 23:32:35     for elements in elements_iterator:
> 23:32:35   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py38-cython/py38-cython/lib/python3.8/site-packages/grpc/_channel.py",
>  line 426, in __next__
> 23:32:35     return self._next()
> 23:32:35   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/target/.tox-py38-cython/py38-cython/lib/python3.8/site-packages/grpc/_channel.py",
>  line 826, in _next
> 23:32:35     raise self
> 23:32:35 grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of 
> RPC that terminated with:
> 23:32:35      status = StatusCode.UNAVAILABLE
> 23:32:35      details = "Broken pipe"
> 23:32:35      debug_error_string = 
> "{"created":"@1626071403.252458842","description":"Error received from peer 
> ipv4:127.0.0.1:37459","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Broken
>  pipe","grpc_status":14}"
> 23:32:35 >
> 23:32:35 Traceback (most recent call last):
> 23:32:35   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py38/build/srcs/sdks/python/apache_beam/runners/worker/data_plane.py",
>  line 459, in input_elements
> 23:32:35     element = received.get(timeout=1)
> 23:32:35   File "/usr/lib/python3.8/queue.py", line 178, in get
> 23:32:35     raise Empty
> 23:32:35 _queue.Empty
> {code}
>  
> `test_pack_combiners` :  
> [https://ci-beam.apache.org/job/beam_PreCommit_Python_Cron/4415/consoleFull]
> {code:java}
> 11:41:14 Exception ignored in: <object repr() failed>
> 11:41:14 Traceback (most recent call last):
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/target/.tox-py36-cython/py36-cython/lib/python3.6/site-packages/grpc/_channel.py",
>  line 444, in __del__
> 11:41:14     with self._state.condition:
> 11:41:14 AttributeError: '_MultiThreadedRendezvous' object has no attribute 
> '_state'
> 11:41:14 Traceback (most recent call last):
> 11:41:14   File "apache_beam/runners/common.py", line 1223, in 
> apache_beam.runners.common.DoFnRunner.process
> 11:41:14     return self.do_fn_invoker.invoke_process(windowed_value)
> 11:41:14   File "apache_beam/runners/common.py", line 752, in 
> apache_beam.runners.common.PerWindowInvoker.invoke_process
> 11:41:14     self._invoke_process_per_window(
> 11:41:14   File "apache_beam/runners/common.py", line 816, in 
> apache_beam.runners.common.PerWindowInvoker._invoke_process_per_window
> 11:41:14     [si[global_window] for si in self.side_inputs]))
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/bundle_processor.py",
>  line 427, in __getitem__
> 11:41:14     self._cache[target_window] = 
> self._side_input_data.view_fn(raw_view)
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/bundle_processor.py",
>  line 353, in __iter__
> 11:41:14     self._state_handler.blocking_get(self._state_key, 
> self._coder_impl))
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/sdk_worker.py",
>  line 1184, in blocking_get
> 11:41:14     self._partially_cached_iterable(state_key, coder))
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/sdk_worker.py",
>  line 1290, in _partially_cached_iterable
> 11:41:14     data, continuation_token = self._underlying.get_raw(state_key, 
> None)
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/sdk_worker.py",
>  line 1057, in get_raw
> 11:41:14     continuation_token=continuation_token)))
> 11:41:14   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Cron/src/sdks/python/test-suites/tox/py36/build/srcs/sdks/python/apache_beam/runners/worker/sdk_worker.py",
>  line 1095, in _blocking_request
> 11:41:14     raise t(v).with_traceback(tb)
> 11:41:14 TypeError: __init__() missing 3 required positional arguments: 
> 'call', 'response_deserializer', and 'deadline'
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to