Skip to content

[server] Fix CorruptIndexException for cached remote log index#652

Merged
wuchong merged 2 commits into
apache:mainfrom
luoyuxia:fix-corrupt-index-exceptoin
Mar 24, 2025
Merged

[server] Fix CorruptIndexException for cached remote log index#652
wuchong merged 2 commits into
apache:mainfrom
luoyuxia:fix-corrupt-index-exceptoin

Conversation

@luoyuxia
Copy link
Copy Markdown
Contributor

Purpose

Linked issue: close #561

To fix the CorruptIndexException thrown by tablet server.

Brief change log

Catch CorruptIndexException of RemoteLogIndexCache, and delete the corrupt index.

Tests

RemoteLogIndexCacheTest#testInitWithCorruptIndex

API and Format

Documentation

Copy link
Copy Markdown
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Let's change CorruptIndexException extends to RuntimeException and move it server.excpetion module as

  1. it is not retriable
  2. it is only used in server, not registered in Errors.
  3. An ApiException removes the exception stack which is hard to debug.

@luoyuxia
Copy link
Copy Markdown
Contributor Author

@wuchong Comments addressed

@wuchong wuchong merged commit 8b0e5ed into apache:main Mar 24, 2025
ZmmBigdata pushed a commit to ZmmBigdata/fluss that referenced this pull request Jun 20, 2025
Ugbot pushed a commit to Ugbot/fluss that referenced this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CorruptIndexException will be thrown if tablet server failover

2 participants