Skip to content

[Bug] Incorrect end timestamp recovery in tiered index files #10656

Description

@majialoong

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

All

RocketMQ version

develop

JDK Version

All

Describe the Bug

IndexStoreFile reads endTimestamp from INDEX_BEGIN_TIME_STAMP instead of INDEX_END_TIME_STAMP during recovery.

Steps to Reproduce

Write an index whose timestamp is later than the file’s begin timestamp, then close and reopen the file.

What Did You Expect to See?

The reopened file should retain the persisted end timestamp.

What Did You See Instead?

The end timestamp becomes the begin timestamp, which can cause valid query results to be skipped.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions