aglinxinyuan opened a new pull request, #4761: URL: https://github.com/apache/texera/pull/4761
### What changes were proposed in this PR? Add `StorageUtilSpec` covering the loan-pattern wrappers in `StorageUtil`: - `withReadLock`, `withWriteLock`, and `withLock` execute the block and return its value - Each wrapper releases the underlying lock even when the block throws ### Any related issues, documentation, discussions? Closes #4759 ### How was this PR tested? `sbt "WorkflowCore/testOnly org.apache.texera.amber.core.storage.util.StorageUtilSpec"` — 6/6 tests pass. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.7) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
