Skip to content

[Bug] Broker dispatch messages despite a message with the same key is unack #20899

Closed

Description

@TTMickael

Search before asking

  • I searched in the issues and found nothing similar.

Version

3.0.0

Minimal reproduce step

Have a partitioned topic
Create a Key_Shared subscription
Produce one message with a key X
Consume one message with the key X but do never ack it
Produce a second message with a key X

What did you expect to see?

The second message is not pushed by the broker

What did you see instead?

The second message is consumed

Anything else?

This behavior has been observed after migrating from 2.10.1 to 3.0.0

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Jul 28, 2023
  2. changed the title [-][Bug] [/-] [+][Bug] Messages are sent despite a message with the same key is not acked[/+] on Jul 28, 2023
  3. changed the title [-][Bug] Messages are sent despite a message with the same key is not acked[/-] [+][Bug] Broker dispatch messages despite a message with the same key is unack[/+] on Jul 28, 2023
  4. poorbarcode commented on Aug 3, 2023

    @poorbarcode
    Contributor

    @TTMickael

    Have a partitioned topic
    Create a Key_Shared subscription
    Produce one message with a key X
    Consume one message with the key X but do never ack it
    Produce a second message with a key X

    Is there only one consumer to consume messages? If yes, it is an expected behavior

  5. TTMickael commented on Aug 9, 2023

    @TTMickael
    Author

    We have 2 consumers for this subscription. I'm expecting in any case that messages with the same key won't be dispatched to ensure the order of delivery unless the unacked message get acked. Am I wrong?

  6. github-actions commented on Sep 9, 2023

    @github-actions

    The issue had no activity for 30 days, mark with Stale label.

  7. Denovo1998 commented on Nov 18, 2023

    @Denovo1998
    Contributor

    @TTMickael @poorbarcode
    Maybe the first consumer without ack message was closed after sending a second message with the same key?

    CleanShot 2023-11-18 at 23 22 31@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staletype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions