Repository navigation
fix(#7768): a WAL file reopens the channel a thread interrupt closed, so one interrupted commit no longer kills a pool slot - #8148
Conversation
… so one interrupted commit no longer kills a pool slot WALFile held a raw FileChannel with no recovery for it. A thread interrupted anywhere inside a commit makes NIO close that channel - AbstractInterruptibleChannel.begin() fires the interruptor even when the flag is already set, so no timing race is needed - and nothing then repaired or replaced the slot: the WALFile stayed in TransactionManager's active pool with open == true and a dead channel, checkWALFiles() caught the ClosedChannelException ahead of the IOException branch written to fence and answered it with a bare close(), and the size-based rotation branch that could have replaced the slot requires isOpen() and so could never fire for it again. Every later transaction hashing to that slot stalled 30s and failed with a message reading like a slow disk, on a database still reporting itself open; with the documented arcadedb.txWalFiles=1 the database stopped committing outright. Three parts: - WALFile gains the #4930 channel-reopen recovery PaginatedComponentFile already has for the data files, on every channel operation in the class rather than only the commit path: append (which retries from the offset the first attempt started at, so an interrupted partial write is overwritten instead of leaving a torn prefix ahead of the record), force, getSize, and all three positional reads through a new readChunk funnel. Only an accidental close is repaired: a file closed on purpose stays closed, and a path gone from disk is never re-created. - checkWALFiles() no longer catches ClosedChannelException ahead of IOException. The only one that can still reach it is one the reopen refused, which means the file is gone - the #7479 case that branch fences on. A file closed on purpose concurrently with the pass stays benign. - writeTransactionToWAL offers the transaction to the other files in the pool before spinning on its own slot, and its timeout message names the per-slot pool state instead of implying disk latency. WALFileGetTransactionTest.ioErrorOnChannelThrowsWALException induced its I/O error by closing the channel, which is now recoverable by design; it deletes the file as well so the condition is genuinely unrecoverable and the assertion it exists for is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change adds interrupted-channel recovery to ChangesWAL recovery and transaction continuity
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant TransactionManager
participant WALFile
participant FileChannel
participant WALPath
TransactionManager->>WALFile: write transaction
WALFile->>FileChannel: append and force
FileChannel-->>WALFile: ClosedChannelException
WALFile->>WALPath: verify WAL file exists
WALFile->>FileChannel: reopen channel and reacquire lock
WALFile->>FileChannel: retry append and force
WALFile-->>TransactionManager: completed write or propagated failure
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change restores interrupted WAL channels and provides fallback across available WAL slots while preserving fencing for unrecoverable files. It is ready to merge with minimal residual risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tick the box to add this pull request to the merge queue (same as
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 30 |
🟢 Coverage 92.13% diff coverage · -6.19% coverage variation
Metric Results Coverage variation ✅ -6.19% coverage variation Diff coverage ✅ 92.13% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (642f431) 187386 155921 83.21% Head commit (1bba4d4) 220002 (+32616) 169450 (+13529) 77.02% (-6.19%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#8148) 89 82 92.13% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Review This is a careful, well-scoped fix. I traced the concurrency story by hand (couldn't run mvn/gh api in this sandbox - both require interactive approval that isn't available here - so this is a static review, not a re-run of the test suite the PR description reports). Correctness
One thing worth double-checking in CI rather than by inspection retryAfterReopen logs at SEVERE on every reopen, including once per chunk in getTransaction's delta-read loop and findNextValidTransactionPosition's scan. The PR body already flags this as a known gap (#8139, deliberately out of scope) - agreed that's the right call for this PR, just flagging so it doesn't get lost. Minor
Test coverage Good - one test per entry point in the coverage table (append/force/getSize/all three read sites, the end-to-end interrupted-commit-with-txWalFiles=1 case, the checkWALFiles fencing regression, the pool-fallback timeout-avoidance case, and two negative guards for "never resurrect a deliberately-closed or deleted file"). The one existing test that had to change (WALFileGetTransactionTest.ioErrorOnChannelThrowsWALException) is adjusted correctly to keep exercising what it was written for, by deleting the file so the condition is genuinely unrecoverable rather than now-legitimately-recoverable. Didn't find any correctness, performance, or security issues beyond what's already called out. The design consistently follows the existing PaginatedComponentFile.reopenChannelUnderWriteLock() (#4930) idiom rather than introducing a new pattern. |
…on a retried read Codacy reported one new high-severity ErrorProne issue on the diff; the only candidates in it were the catch blocks that bound the exception and then dropped it. Rather than silence them, the cause is now carried: retryAfterReopen takes the ClosedChannelException that triggered the recovery, logs it with the diagnostic instead of passing null, and attaches it as a suppressed exception when the retry itself fails - so a refused reopen no longer hides what closed the channel. The dead-handle close inside reopenChannel() logs its failure at FINE instead of discarding it. Re-reading readChunk for that change surfaced a real defect of its own, the read-side twin of the one append() already guards against: an interrupted read can transfer bytes into the buffer before throwing, and the retry reads from the SAME file offset, so without rewinding the buffer to where the attempt began those bytes would be written twice and the caller's readPos would drift out of step with the buffer position. The position is now recorded before the attempt and restored on retry. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ReviewI independently traced the interrupt/reopen/retry logic in Correctness
Design
Test coverageThe new Minor / non-blocking
I was not able to run Nothing here blocks merge from my read. 🤖 Generated with Claude Code |
…stead of an instanceof on the caught exception Codacy's remaining high-severity finding, now read from the check-run annotation rather than guessed at: TransactionManager.java:1249, "An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type." The instanceof was there to avoid a second copy of the #7479 fence. Lifting that fence into fenceForInaccessibleWALFile() removes the reason: ClosedChannelException gets its own clause again - this time one that fences rather than swallowing, unless the file was closed on purpose while the pass was running - and the IOException clause delegates to the same helper. One fence site, no instanceof, and the two conditions now read as the two distinct cases they are. Behaviour is unchanged; the 108 WAL, TransactionManager, interrupt and flush tests stay green. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Review of #8148Solid, well-documented fix for a real bug:
Two things worth a look before/after merge, neither blocking given the size and quality of the test suite already here: 1. The pool fallback in 2. Nothing else stood out: no new dependencies, the |
… pool fallback's scope boundary Two non-blocking review notes, both taken. isActive() was public for no reason: its only caller is describeWALFilePool in the same package, and its sibling accessor acquiredLock() a few lines above is package-private for exactly that reason. Narrowed to match. The reviewer also observed, correctly, that the pool fallback only engages when acquire() cleanly REFUSES a slot, not when the write throws - so a slot whose file has vanished from disk propagates a WALException rather than routing the transaction to a healthy file. That is deliberate, and it is now said so in tryWriteTransactionToWALFile's javadoc: a WAL file disappearing under a live instance is the #7479 case, the next housekeeping tick fences the whole database over it, and writing more data anywhere in the meantime is the opposite of what that fence exists for. Only a cleanly refused slot - closed, absent or mid-rotation - is routed elsewhere. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ReviewI read through CorrectnessTraced the concurrency story by hand:
I didn't find a correctness bug beyond what's already called out in the PR body. Minor observations (non-blocking)
Test coverageCoverage is unusually complete for the entry points described (append/force/getSize/recovery-reads, the end-to-end interrupted-commit scenario, the fence-vs-swallow distinction, and the pool fallback/timeout message). I traced a couple of the trickier ones ( Security / performanceNo security concerns (purely internal I/O recovery on already-open local files, no new external input surface). Performance impact is negligible — the pool fallback and Nice work — this is a well-scoped fix with a genuinely thorough test suite backing it. |
… depends on The reviewer noted that ClosingUnderneathWALFile stages its race by reporting "open" on the first isOpen() call and "closed" afterwards, which couples the test to checkWALFiles() consulting isOpen() twice - once in the rotation guard, once in the ClosedChannelException branch. Cache that read in a local one day and the stub reports "open" throughout: the test keeps passing while exercising nothing. A comment was suggested; asserting it is better, because a comment cannot fail a build. The call count is now captured after the housekeeping pass and asserted to be at least two, with a message saying what stops being tested if it ever drops to one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
ReviewThis is an unusually well-documented fix, and the code matches what the PR description promises. I read through both Correctness
Potential edge case (non-blocking)
Performance
Known accepted gapThe Test coverageThorough - one test per entry point in the coverage table (append, force, getSize, all three recovery read paths), the two negative guards (closed-on-purpose is never reopened, a deleted file is never recreated), the shutdown-race benign case, the pool-fallback case, and an end-to-end reproduction with The one existing test that was modified ( Nit
I wasn't able to run |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8148 +/- ##
============================================
+ Coverage 74.88% 74.90% +0.02%
Complexity 2579 2579
============================================
Files 2004 2004
Lines 187386 187457 +71
Branches 39184 39196 +12
============================================
+ Hits 140320 140413 +93
+ Misses 31504 31482 -22
Partials 15562 15562 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Closes #7768
WALFileheld a rawFileChannelwith no recovery for it, so a thread interrupted anywhere inside a commit made NIO close that channel (AbstractInterruptibleChannel.begin()fires the interruptor even when the flag is already set, so no timing race is needed) and nothing ever repaired or replaced the slot: theWALFilestayed inTransactionManager.activeWALFilePoolwithopen == trueand a dead channel,checkWALFiles()caught the resultingClosedChannelExceptionahead of theIOExceptionbranch that was written to fence and answered it with a bareclose(), and the size-based rotation branch that could have replaced the slot requiresisOpen()and so could never fire for it again. Every later transaction whosethreadId % poolSizelanded on that slot then stalled for the full 30 sWRITE_WAL_TIMEOUTand failed with a message that reads like a slow disk, on a database that still reported itself open - and with the documentedarcadedb.txWalFiles=1the database stopped committing outright. This PR givesWALFilethe #4930 channel-reopen treatmentPaginatedComponentFilealready has for the data files, stopscheckWALFiles()swallowing the case #7479 wrote that fence for, and lets a commit fall back to the rest of the WAL pool instead of spinning on one slot for 30 s.Finding ledger
The issue lists three suggested fixes plus one separate remark. Every one carries a final status:
WALFilehas no reopen-after-ClosedChannelExceptionrecovery - fixed, on every channel operation in the class, not only the commit path (append,force,getSize, and all three positional reads through the newreadChunk)checkWALFiles()should replace the dead slot rather than merely close it - argued, not implemented; see Completeness below. With finding 1 in place a slot can only go dead when the reopen is refused, and finding 3 then fences the database, so there is no live pool left to rotate a fresh file intoClosedChannelExceptioncatch silently steals the case theIOExceptionbranch was written to fence - fixed, the catch is gone and the only thing that short-circuits the fence now is a file closed on purpose concurrently with the pass (a shutdown racing the housekeeping timer)writeTransactionToWALshould not spin 30 s against a slot it has already observed to be closed, and the message should not read as a disk-latency problem - fixed, by falling back to the other files in the pool and by naming the per-slot pool state in the timeout messageCompleteness
The invariant
Enumerating every way to violate it
Every channel operation in
WALFileis a way to meet the interrupt, so the sweep is overchannel.*rather than over the one call site the report named. Line numbers below are from the sweep as it was run, i.e. againstmainbefore the first commit:Who drives each of them:
All three sites are inside
checkIntegrity(), i.e. the recovery path at open time.The only runtime caller of
WALFile.getSize()is the once-a-second housekeeping pass.One production call site, which passes the same object as receiver and as the
fileparameter - so replacingchannel.force(...)withforce(...)(implicitthis) preserves the original receiver exactly.Nothing outside
enginetouches the instance state this PR changes:Every one of those references only the static nested types (
WALTransaction,WALPage,FlushType), theMAGIC_NUMBERconstant or the staticdeleteIfNotHeldByAnotherInstance- never an instance field. No API break.Coverage table
writeTransactionToWAL->acquire()->writeTransactionToFile->append()->channel.size()/channel.write()appendReopensAChannelTheInterruptClosedAndWritesTheWholeRecordwriteTransactionToFile->channel.force()(arcadedb.txWalFlush1 or 2)forceReopensAChannelTheInterruptClosedcheckWALFiles()->getSize()->channel.size()getSizeReopensAChannelTheInterruptClosedcheckIntegrity()->getFirstTransaction()/getTransaction()/findNextValidTransactionPosition()/readFully()->channel.read()readChunk()recoveryReadsReopenAChannelTheInterruptClosedanInterruptedCommitLeavesTheWalPoolSlotUsable(txWalFiles=1)checkWALFiles()swallowingClosedChannelExceptioninstead of fencing (the #7479 contract)aClosedChannelNoReopenCanRepairFencesInsteadOfBeingSwallowedaSlotClosedConcurrentlyWithTheHousekeepingPassDoesNotFencewriteTransactionToWALspinning 30 s on a slot whose file is permanently closedaCommitFallsBackToAnotherWalFileWhenItsOwnSlotIsClosedtheWalTimeoutDiagnosticNamesThePoolStateInsteadOfImplyingASlowDiskreopenChannel()refuses on!openaChannelClosedOnPurposeIsNeverReopenedreopenChannel()refuses when the path is absentaWalFileGoneFromDiskIsNeverRecreatedByTheReopencheckWALFiles()opening a replacementtxlog_<n>.walover a dead slot (the issue's suggestion 2)channel.tryLock()in the constructor,channel.close()inclose()The two argued rows
Suggestion 2 (replace the dead slot) is deliberately not implemented. With the reopen in place, a slot can only stay dead when
reopenChannel()refuses, which it does in exactly two cases: the file was closed on purpose (the database is shutting down, so the pool is going away regardless) or the file is gone from disk. The second is precisely the #7479 case, andcheckWALFiles()now fences the database over it - a fenced database has no live pool to rotate a fresh file into, so opening a replacementtxlog_<n>.walthere would create a file nothing will ever write to. The one branch that would leave a dead slot behind is theIOExceptionhandler's "noLocalDatabaseto fence" fallback, and that is unreachable:Both implementations bottom out at
LocalDatabase.getEmbedded()returningthis, sodatabase.getEmbedded() instanceof LocalDatabasealways holds and the fence always runs. Separately, the new pool fallback means even a genuinely dead ornullslot no longer takes its threads down: they are served by another file in the pool.tryLock()andclose()are not wrapped.tryLock()runs in the constructor on a channel created two lines above it, andclose()is the deliberate teardown the reopen must never undo. Reopening in either would be wrong, not merely unnecessary.Reachability
The changed code runs on the live commit path, not only under the new tests. Every
SEVEREreopen line in the runs below was emitted by production code driven through an ordinarydatabase.transaction(...)or through the real housekeeping pass, and the end-to-end test drives the fix throughLocalDatabasewitharcadedb.txWalFiles=1. Nothing is behind a new flag.The tests were proved able to fail
Reverting both main-source files to
HEADand rerunning the new class (theforce/isActive/describeWALFilePoolcalls neutralised so it still compiles) fails 8 of 10, with exactly the symptoms the issue reports:The two that pass in both worlds are the negative guards (
aChannelClosedOnPurposeIsNeverReopened,aSlotClosedConcurrentlyWithTheHousekeepingPassDoesNotFence), which is what a guard should do.Residual risk
reopenChannel()takes it again - but for the microseconds in between, the GraphImporter fails to load data properly when ArcadeDB server is alive #7479 protection against another process's directory-wide WAL cleanup is not in force. Nothing in this repository re-readsacquiredLock()on an existing pool file after construction - its three readers arecheckIntegrity()'s construction loop,createWALFilePool()'s construction loop and the rotation branch checking its freshly created replacement - so a reopen that fails to re-acquire cannot change any decision this code makes; it only shortens the window the lock covers.SEVEREonce per channel operation, so an interrupted recovery scan - one read per chunk - can emit a flood. Filed as WALFile's interrupt reopen logs one SEVERE line per channel operation, so an interrupted recovery scan emits an unbounded flood #8139 rather than solved here, because reducing it means deciding whether repeated reopens stay visible, and One interrupted commit permanently kills a WAL pool slot: every later transaction on that slot blocks 30 s and fails with "Timeout on writing transaction to WAL" #7768 is in part a report that this failure used to be invisible belowFINE.One deliberate behaviour change to an existing test
WALFileGetTransactionTest.ioErrorOnChannelThrowsWALExceptioninduced its I/O error by closing the channel through reflection. That is now, by design, a recoverable condition, so the test would have gone green for the wrong reason. Its assertion is untouched - the contract it exists for, "an I/O error surfaces asWALExceptionand is never swallowed into anull", is still exactly what it checks - and only the inducement changed: the file is deleted as well, which makes the reopen legitimately refuse (#7479's guard) and the error genuinely unrecoverable. Calling this out explicitly because it is the one place where this PR edits a test it did not write.Adversarial pass
The
Tasktool is not available in this environment, so no isolated subagent could be spawned for Phase 1.5; the pass was self-administered against the diff, with each finding checked by command rather than by recollection.writeTransactionToFilechanging the fsync receiver fromthisto thefileparameter - real, fixed here before the PR opened. The first draft wrotefile.force(...)to match the adjacentfile.append(...);channel.force(...)had always beenthis.channel, and although the single production call site provably passes the same object, the literal translation isforce(...). Changed, with a comment recording why.SEVERElogging on a reopen-per-read recovery scan - real, out of scope, filed as WALFile's interrupt reopen logs one SEVERE line per channel operation, so an interrupted recovery scan emits an unbounded flood #8139 and named under Residual risk.acquiredLock()'s three readers.appendretry could leave a torn prefix in the log" - not real, and the reason is in the code. The retry restarts from the offset the first attempt started at, recorded before the first write, rather than from the reopened channel'ssize()- which would count whatever bytes the interrupted write managed to put down and append the record after them.appendReopens…AndWritesTheWholeRecordasserts the file's bytes equal the record exactly.append()documents" - not real. The fallback still goes throughWALFile.acquire(), which issynchronized, so two threads that fall back onto the same file serialize on that file's monitor exactly as two threads hashing to it always did.checkIntegrity()reads everytxlog_*.walin the directory and merges them bytxId; thethreadId % lengthhash is a contention spreader, not a constraint.WalCommitOrderingTest,WalRecoveryCorrectnessTest,WALVersionGapRecoveryTestandIssue4508TornWALRecoveryTestall pass.!active || !open, a state in which there are no successful writers to contend with. The normal path is one extra (JIT-inlinable) call and no extra allocation -tryWriteTransactionToWALFilecaptures exactly what the old inline lambda captured.close()and resurrect the file" - not real.reopenChannel()issynchronizedandclose()/drop()/acquire()hold the same monitor, so the two cannot interleave; whichever runs first wins, andreopenChannel()refuses outright onceopen == false.Test plan
mvn -o -pl engine test -Dsurefire.includes="**/Issue7768InterruptedWalSlotTest.java"- 11/11 greenHEAD's main sources - 8 of 10 fail, including a 30.2 sTimeout on writing transaction to WAL(evidence above)TransactionManager, interrupt and flush test class inengine- 105/105 green:-Dsurefire.includes="**/*WAL*Test.java,**/*Wal*Test.java,**/TransactionManager*Test.java,**/InterruptedIOFailsLoudTest.java,**/PaginatedComponentFileInterruptedWriteTest.java,**/FlushRobustnessTest.java,**/Issue4508*Test.java,**/Issue4509*Test.java,**/Issue4958*Test.java,**/Issue7121*Test.java,**/Issue6932*Test.java"enginemodule,-DexcludedGroups=benchmark,vector,slow- 16125 tests, 0 failures, 0 errors, 22 skippedTransactionManagersubset re-run after the finalforce(...)receiver change - 108/108 greenarcadedb.txWalFiles=1, and confirm the database keeps committing instead of stalling 30 s per transactionCoverage
Entry points this fix covers, from the table above: the commit WAL append, the commit fsync, the housekeeping size check, all three recovery read sites, the
checkWALFilesfence decision, and the WAL-pool selection inwriteTransactionToWAL.Known gaps
SEVEREline per channel operation, so an interrupted recovery scan emits an unbounded flood. Out of scope here because reducing it is a visibility decision, and One interrupted commit permanently kills a WAL pool slot: every later transaction on that slot blocks 30 s and fails with "Timeout on writing transaction to WAL" #7768 is partly a report that this failure used to be invisible.Review cycles
Four review cycles ran against the
claudebot and Codacy. CodeRabbit never reviewed this PR: its check reportsReview rate limited("You've used all 4 included reviews currently available") and it posted no review and no inline threads, so there are no CodeRabbit threads to resolve.1a017c6claude: no correctness, performance or security issues; "didn't find any … beyond what's already called out". Codacy: 1 new high ErrorProne issue85269edretryAfterReopen(logged, and attached as suppressed when the retry also fails) instead of binding and dropping it; and a real defect this surfaced -readChunk's retry now rewinds the buffer to where the attempt began, the read-side twin of the offsetappendalready records, since an interrupted read can transfer bytes before throwingclaude: "Nothing here blocks merge from my read". Codacy still failing9da89d0TransactionManager.java:1249, "An instanceof check is being performed on the caught exception". Theinstanceofexisted only to avoid a second copy of the #7479 fence, so the fence moved intofenceForInaccessibleWALFile()andClosedChannelExceptiongot its own clause back - one that fences rather than swallowingclaude: no correctness bug; two non-blocking notes. Codacy: success9d0237disActive()narrowed to package-private to matchacquiredLock(), andtryWriteTransactionToWALFile's javadoc now states the fallback's scope boundary - a refusal is routed elsewhere, a throw is not, because a WAL file vanishing under a live instance is the #7479 case and writing more data anywhere is the opposite of what the fence is forclaude: no correctness bug; one nit about a test's coupling1bba4d4ClosingUnderneathWALFilestages its race oncheckWALFiles()callingisOpen()twice, so the call count is now asserted - a comment cannot fail a build, and a cached read would otherwise leave the test passing while exercising nothingclaude: "I don't see anything blocking here". Codacy success,lintgreenThe 108-test WAL/
TransactionManager/interrupt/flush set was re-run green after every one of these commits.Adversarial pass - additions from the review loop
Beyond the seven findings recorded above, two more were produced during the cycles and both are fixed here:
readChunk's retry could double-write into the buffer - real, and the more interesting of the two because it was not reported by any bot: re-reading the exception-cause change surfaced that an interruptedchannel.readcan transfer bytes before throwing, so retrying from the same file offset without rewinding the buffer would write them twice and drift the caller'sreadPosout of step with the buffer position.appendhad been given this care and the read path had not. Fixed in85269ed.instanceofon a caught exception - real, found by Codacy and confirmed from the check-run annotation rather than guessed at. Fixed in9da89d0, and the code is better for it: one fence site instead of a merged catch.Deferred items
One non-blocking suggestion from the final review is not applied, recorded here rather than silently dropped:
Rationale for deferring: the reviewer's own reading is right - it is intentional, and the behaviour it describes is correct (a database being closed underneath a retry should fail that operation, not fight the shutdown for it). What is left is a documentation line, and this PR had already spent its review budget; adding an unreviewed commit for a javadoc sentence trades a reviewed head for a cosmetic gain. Worth folding into #8139, which already touches this method's logging.
Final state
clean-approval- the latest review on the final head (1bba4d4) says nothing blocks the merge, no major issue is open, Codacy is green, and there are no CodeRabbit threads (rate-limited, never reviewed). The merge is the developer's: this branch was never merged, closed or force-pushed.🤖 Generated with Claude Code
Summary by CodeRabbit