Skip to content

e2e tests randomly fail execution in github runner with: Error: raise RuntimeError('Event loop is closed') #188

Open
@rlubke

Description

@rlubke

The initial connection to Coherence is fine, but then the following error is raised:

.2024-12-19 19:02:02,752 - coherence - INFO - Session [db702d22-0620-4ce0-9485-e1e36824903d] connected to [localhost:1408].
.2024-12-19 19:02:02,822 - asyncio - ERROR - Exception in callback PollerCompletionQueue._handle_events(<_UnixSelecto...e debug=False>)()
handle: <Handle PollerCompletionQueue._handle_events(<_UnixSelecto...e debug=False>)()>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "src/python/grpcio/grpc/_cython/_cygrpc/aio/completion_queue.pyx.pxi", line 170, in grpc._cython.cygrpc.PollerCompletionQueue._handle_events
  File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/asyncio/base_events.py", line 839, in call_soon_threadsafe
    self._check_closed()
  File "/opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/asyncio/base_events.py", line 540, in _check_closed
Error:     raise RuntimeError('Event loop is closed')

Coherence detects the disconnect and continues to attempt to reconnect and continuing to fail with the above.

This doesn't appear to be related to a particular Python version as it randomly happens across the jobs.

Most recent example of the failure: https://github.com/oracle/coherence-py-client/actions/runs/12419053685/job/34673552362

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions