lizhimins opened a new pull request, #10473:
URL: https://github.com/apache/rocketmq/pull/10473

   ## What is the purpose of the change
   
   Part of #10462
   
   Improve error handling to prevent silent data corruption and propagate fatal 
errors.
   
   ## Brief changelog
   
   - TieredMessageStore: unwrap `CompletionException`, re-throw `Error`
   - PosixFileSegment: throw `RuntimeException` on IOException in `read0`
   - FlatAppendFile: `getFileCorrectSize` bounded 3-retry instead of infinite 
loop
   - FlatAppendFile: add `GET_TIMESTAMP_ERROR` constant, use in 
`getMin/MaxTimestamp`
   - FileSegment: `readAsync` uses local snapshot of `commitPosition`
   - FileSegmentFactory: include provider name/type/path in `RuntimeException`
   - FlatMessageFile: `commitAsync` uses `tryAcquire` instead of `drainPermits`
   - IndexStoreService: check `fileSegmentList` empty before accessing last 
element
   - IndexStoreService: delete corrupted local files during recover
   
   ## Verifying this change
   
   - [x] `mvn compile` succeeds
   - [x] `mvn test -pl tieredstore` passes (112 tests, 0 failures)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
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]

Reply via email to