shunping opened a new pull request, #38423:
URL: https://github.com/apache/beam/pull/38423

   The following error occurs in the python test workflows from time to time. 
It happens during the shutdown of a job server, but looking at the code path, 
it could be a problem in other servers like expansion service. 
   
   ```
   Exception ignored in atexit callback <bound method StopOnExitJobServer.stop 
of <apache_beam.runners.portability.job_server.StopOnExitJobServer object at 
0x7c8f2326c590>>:
   Traceback (most recent call last):
     File 
"/runner/_work/beam/beam/sdks/python/test-suites/tox/py313/build/srcs/sdks/python/target/.tox-py313/py313/lib/python3.13/site-packages/apache_beam/runners/portability/job_server.py",
 line 97, in stop
       self._job_server.stop()
     File 
"/runner/_work/beam/beam/sdks/python/test-suites/tox/py313/build/srcs/sdks/python/target/.tox-py313/py313/lib/python3.13/site-packages/apache_beam/runners/portability/job_server.py",
 line 127, in stop
       return self._server.stop()
     File 
"/runner/_work/beam/beam/sdks/python/test-suites/tox/py313/build/srcs/sdks/python/target/.tox-py313/py313/lib/python3.13/site-packages/apache_beam/utils/subprocess_server.py",
 line 255, in stop
       self.stop_process()
     File 
"/runner/_work/beam/beam/sdks/python/test-suites/tox/py313/build/srcs/sdks/python/target/.tox-py313/py313/lib/python3.13/site-packages/apache_beam/utils/subprocess_server.py",
 line 259, in stop_process
       self._cache.purge(self._owner_id)
     File 
"/runner/_work/beam/beam/sdks/python/test-suites/tox/py313/build/srcs/sdks/python/target/.tox-py313/py313/lib/python3.13/site-packages/apache_beam/utils/subprocess_server.py",
 line 93, in purge
       raise ValueError(f"{owner} not in {self._live_owners}")
   ValueError: 10 not in set()
   ```
   
   We identified three potential issues and implemented fixes to harden the 
server shutdown process.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to