close
Skip to content

fix(server): fix index saving issue on server restart, fix ci#1887

Merged
hubcio merged 2 commits into
masterfrom
indexes-double-save
Jun 20, 2025
Merged

fix(server): fix index saving issue on server restart, fix ci#1887
hubcio merged 2 commits into
masterfrom
indexes-double-save

Conversation

@hubcio
Copy link
Copy Markdown
Contributor

@hubcio hubcio commented Jun 20, 2025

This commit addresses a critical bug where indexes were not marked as saved
when the server was restarted with the index cache set to open_segment. This
resulted in indexes being saved twice. The fix ensures that indexes are
properly marked as saved upon loading from disk, preventing duplicate saves.

Additionally, the commit includes:

  • A new test scenario to verify data integrity after server restart.
  • Adjustments to the partition storage logic to sort log files before
    processing.
  • Improvements in logging for better traceability of message loading and
    index handling.
  • Fix to CI scripts which were not properly detecting changes to files in the PR

This commit addresses a critical bug where indexes were not marked as saved
when the server was restarted with the index cache set to open_segment. This
resulted in indexes being saved twice. The fix ensures that indexes are
properly marked as saved upon loading from disk, preventing duplicate saves.

Additionally, the commit includes:
- A new test scenario to verify data integrity after server restart.
- Adjustments to the partition storage logic to sort log files before
  processing.
- Improvements in logging for better traceability of message loading and
  index handling.
@hubcio hubcio force-pushed the indexes-double-save branch 2 times, most recently from 056e29d to 61e381f Compare June 20, 2025 17:56
@hubcio hubcio force-pushed the indexes-double-save branch from 61e381f to cb46b7e Compare June 20, 2025 17:56
@hubcio hubcio changed the title fix(server): fix index saving issue on server restart fix(server): fix index saving issue on server restart, fix ci Jun 20, 2025
@spetz
Copy link
Copy Markdown
Contributor

spetz commented Jun 20, 2025

Tested locally and looks like this issue is resolved!

Copy link
Copy Markdown
Contributor

@numinnex numinnex left a comment

Choose a reason for hiding this comment

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

+2

@hubcio hubcio merged commit 9aed371 into master Jun 20, 2025
25 checks passed
@hubcio hubcio deleted the indexes-double-save branch June 20, 2025 18:34
hageshiame pushed a commit to hageshiame/iggy that referenced this pull request Nov 7, 2025
…#1887)

This commit addresses a critical bug where indexes were not marked as
saved when the server was restarted with the index cache set to open_segment.
This resulted in indexes being saved twice. The fix ensures that indexes are
properly marked as saved upon loading from disk, preventing duplicate
saves.

Additionally, the commit includes:
- A new test scenario to verify data integrity after server restart.
- Adjustments to the partition storage logic to sort log files before
  processing.
- Improvements in logging for better traceability of message loading and
  index handling.
- Fix to CI scripts which were not properly detecting changes to files
in the PR
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.

3 participants