Add fix for local recovery from flush - #21553
Conversation
PR Reviewer Guide 🔍(Review updated until commit 69a2edf)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 69a2edf Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 31d3e49
Suggestions up to commit 2ce024b
Suggestions up to commit f13f3ba
Suggestions up to commit e7d23ce
Suggestions up to commit 1118886
|
|
❌ Gradle check result for 1118886: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 1118886 |
|
❌ Gradle check result for 1118886: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit e7d23ce |
|
❌ Gradle check result for e7d23ce: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit f13f3ba |
|
Persistent review updated to latest commit 2ce024b |
|
❌ Gradle check result for 2ce024b: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 31d3e49 |
|
❌ Gradle check result for 31d3e49: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
31d3e49 to
69a2edf
Compare
|
Persistent review updated to latest commit 69a2edf |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21553 +/- ##
============================================
+ Coverage 73.49% 73.54% +0.05%
- Complexity 74624 74662 +38
============================================
Files 5980 5980
Lines 338825 338828 +3
Branches 48857 48858 +1
============================================
+ Hits 249010 249190 +180
+ Misses 70041 69821 -220
- Partials 19774 19817 +43 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…)" This reverts commit 9fb3267. Signed-off-by: Arpit Bandejiya <abandeji@amazon.com>
Description
When a DataFormatAwareEngine restarts with committed data and no pending translog operations, the CatalogSnapshotManager would restore the committed snapshot but never notify listeners (reader managers). This meant the engine appeared healthy but couldn't serve search requests — the reader managers had no open readers.
Root cause: CatalogSnapshotManager's constructor restored the committed CatalogSnapshot from Lucene commit data but did not call afterRefresh() on registered listeners. Reader managers rely on this callback to open readers for the current snapshot.
Fix: After restoring the committed snapshot in CatalogSnapshotManager's constructor, iterate over all registered CatalogSnapshotLifecycleListeners and invoke afterRefresh(true, latestCatalogSnapshot) so reader managers are initialized immediately on engine open.
Test plan