You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The normal process-exit path lacks a dedicated stop-and-join handler for URMA
polling workers, while poller groups are stored in an ordinary static vector.
Late Socket/UrmaEndpoint cleanup may enqueue CQ removal operations after the
poller queues have been destroyed.
What is changed and the side effects?
Changed:
Keep the poller-group vector alive for the process lifetime using a leaky singleton.
Register a polling-only atexit handler to stop and join polling workers, preserving the existing IOBuf pool lifetime because thread-local blocks may outlive atexit handlers.
Skip CQ add/remove operations when the group is no longer running.
Add regression tests for polling shutdown and process exit.
Validation (URMA mock):
CMake build passed with WITH_URMA=ON and URMA_USE_MOCK=ON.
All 20 tests passed.
An exit probe confirmed that polling workers completed their release callbacks before normal process exit.
git diff --check passed.
Side effects:
Performance effects: adds a running-state check to CQ registration/removal; the CQ polling loop is unchanged.
Breaking backward compatibility: no wire protocol or existing function signature changes. The poller-group container is intentionally retained until process termination.
Check List:
Please make sure your changes are compilable.
When providing us with a new feature, it is best to add related tests.
What problem does this PR solve?
Issue Number: Related to #3428
Problem Summary:
The normal process-exit path lacks a dedicated stop-and-join handler for URMA
polling workers, while poller groups are stored in an ordinary static vector.
Late Socket/UrmaEndpoint cleanup may enqueue CQ removal operations after the
poller queues have been destroyed.
What is changed and the side effects?
Changed:
Validation (URMA mock):
WITH_URMA=ONandURMA_USE_MOCK=ON.git diff --checkpassed.Side effects:
Performance effects: adds a running-state check to CQ registration/removal; the CQ polling loop is unchanged.
Breaking backward compatibility: no wire protocol or existing function signature changes. The poller-group container is intentionally retained until process termination.
Check List: