You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "platinumhamburg (via GitHub)" <gi...@apache.org> on 2026/04/07 02:39:26 UTC

[I] [server] Handle corrupt log data after unclean shutdown to prevent TabletServer startup failure [fluss]

platinumhamburg opened a new issue, #3009:
URL: https://github.com/apache/fluss/issues/3009

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
   
   
   ### Fluss version
   
   0.9.0 (latest release)
   
   ### Please describe the bug 🐞
   
   After an unclean shutdown, log files may contain incomplete batch headers. This caused LogSegment.readNextOffset() to throw NoSuchElementException via Iterables.getLast() on empty batches, crashing the TabletServer on restart.
   
   ### Solution
   
   - Add CorruptLogException to identify unrecoverable log corruption
   - Fix LogSegment.readNextOffset() to guard against empty batch iterators
   - Wrap LogLoader.load() to convert data-corruption-related exceptions (IOException, CorruptIndexException, LogSegmentOffsetOverflowException, InvalidOffsetException) into CorruptLogException
   - Catch CorruptLogException in LogManager to delete corrupted local data and allow re-replication from leader
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
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: issues-unsubscribe@fluss.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [server] Handle corrupt log data after unclean shutdown to prevent TabletServer startup failure [fluss]

Posted by "platinumhamburg (via GitHub)" <gi...@apache.org>.
platinumhamburg closed issue #3009: [server] Handle corrupt log data after unclean shutdown to prevent  TabletServer startup failure
URL: https://github.com/apache/fluss/issues/3009


-- 
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: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org