Skip to content

Fix ClusterRangeIndexCheckpointSyncWithEviction test: force flush.bftree generation#1848

Merged
vazois merged 5 commits into
mainfrom
vazois/cluster-range-index
Jun 3, 2026
Merged

Fix ClusterRangeIndexCheckpointSyncWithEviction test: force flush.bftree generation#1848
vazois merged 5 commits into
mainfrom
vazois/cluster-range-index

Conversation

@vazois
Copy link
Copy Markdown
Contributor

@vazois vazois commented Jun 2, 2026

The test was failing because lowMemory: true alone does not guarantee RI records get flushed to disk. With only 2 RI keys in a 2KB log, the pages never advance past ReadOnlyAddress.

Fix: After creating the RI indexes, write 100 regular string keys to fill the log and push RI records past the read-only boundary, triggering OnFlushSnapshotTreeForFlushflush.bftree file creation.

Also adds Garnet.test.cluster.replication.rangeindex to the CI cluster test matrix.

Copilot AI review requested due to automatic review settings June 2, 2026 04:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a flaky cluster replication test for RangeIndex by ensuring the flush path runs (so *.flush.bftree snapshot files are produced), and expands CI coverage to include the dedicated RangeIndex cluster replication test project.

Changes:

  • Update ClusterRangeIndexCheckpointSyncWithEviction to generate additional log traffic after creating RangeIndex keys so a flush is triggered and *.flush.bftree files are created.
  • Add Garnet.test.cluster.replication.rangeindex to the GitHub Actions CI cluster test matrix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/cluster/Garnet.test.cluster.replication.rangeindex/ClusterRangeIndexReplicationTests.cs Adds filler writes intended to force log flush so *.flush.bftree files are generated before checkpoint/sync assertions.
.github/workflows/ci.yml Extends cluster test matrix to run the RangeIndex replication test project in CI.

@vazois vazois merged commit 40cea76 into main Jun 3, 2026
195 checks passed
@vazois vazois deleted the vazois/cluster-range-index branch June 3, 2026 00:42
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