The GitHub Actions job "Build" on jackrabbit-oak.git/OAK-12300 has failed.
Run started by GitHub user rishabhdaim (triggered by rishabhdaim).

Head commit for run:
326724e935b7554fdcfd3e5b62e9f73448c2056b / rishabhdaim 
<[email protected]>
OAK-XXXXX: Remove ServiceListener after awaitServiceEvent completes

The EventServiceListener was never removed from the BundleContext after
awaitServiceEvent completed (either successfully or via timeout). This caused:

1. Resource leaks - listeners accumulated across test runs
2. Test interference - listeners from previous tests continued receiving events
3. Intermittent test failures - unrelated service events could be captured,
   causing timeout errors when waiting for specific service events

Fix: Add try-finally block to ensure bundleContext.removeServiceListener()
is always called after the await completes, preventing listener accumulation
and cross-test event interference.

Co-authored-by: Copilot <[email protected]>

Report URL: https://github.com/apache/jackrabbit-oak/actions/runs/28804178026

With regards,
GitHub Actions via GitBox

Reply via email to