Conversation
…owhandler reordering
🔍 CI failure analysis for 6fec1ca: Multiple test failures (47 unit tests + 2 E2E tests) appear unrelated to PR's shutdown ordering changes, as failures occur during test execution, not during cleanup.IssueMultiple test failures across different test suites:
Root CauseThe test failures appear UNRELATED to the PR changes. Here's why: PR Changes:
Evidence these failures are unrelated:
DetailsFailure categories breakdownEvent Subscription Failures (16 tests): Pattern: Callback resources (Slack, MSTeams, Webhook) returning null EventDetails. This suggests the event subscription callback infrastructure has pre-existing issues. API Service Failures (8 tests): Pattern: Expected a proper object but got a Map. This is a deserialization issue in the API service connection schema handling. Notification Test Failures (7 tests): Pattern: Tests trying to connect to external notification services that aren't available in the test environment. Data Product Failures (6 tests): Pattern: Data product domain migration logic issues. Ingestion Pipeline Log Storage (5 tests): Pattern: S3 storage issues - likely LocalStack or test infrastructure problems. Playwright E2E (2 tests):
Why shutdown ordering changes cannot cause these failuresThe PR changes only affect cleanup operations that happen after all tests finish:
The failures occur during:
These are all runtime behaviors that execute before cleanup code runs. The reordering in // NEW ORDER:
EventPubSub.shutdown();
EventSubscriptionScheduler.shutDown();
AsyncService.getInstance().shutdown();
AppScheduler.shutDown();This only matters when the application is stopping, not when it's serving requests during tests. Code Review ✅ ApprovedClean shutdown reordering fix with no logic changes. All shutdown methods are independent with no cross-dependencies, making the reorder safe. The new sequence correctly follows "stop producers before consumers" for the app and "stop app before engine" for tests. Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
|
Changes have been cherry-picked to the 1.12.2 branch. |



Describe your changes:
Fixes
I worked on ... because ...
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Summary by Gitar
TestSuiteBootstrap.cleanup()AsyncServiceshutdown inOpenMetadataApplication.stop()This will update automatically on new commits.