Skip to content

[Bug] RawReader.getMessageId should return the messageId of the last committed message #21456

@coderzc

Description

@coderzc

Search before asking

  • I searched in the issues and found nothing similar.

Version

master

Minimal reproduce step

  1. Create a RawReader

  2. Send a normal message

  3. Start a transaction and send a transaction message.

  4. Call RawReader.getLastMessageIdAsync

  5. Commit transaction

What did you expect to see?

If the transaction is not committed, getLastMessageId should return the messageId of the last committed/aborted message.

What did you see instead?

Return the messageId of the last uncommitted message.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/reliabilityThe function does not work properly in certain specific environments or failures. e.g. data losttype/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions