Skip to content

[Bug] PerformanceConsumer and PerformanceReader run with -time quit only after another message  #17824

Closed

Description

@andrasbeni

Search before asking

  • I searched in the issues and found nothing similar.

Version

master; hash: 8e855bc

Minimal reproduce step

Start bin/pulsar-perf read -u pulsar://localhost:6650 -time 15 topic
Run bin/pulsar-perf produce -u pulsar://localhost:6650 -m 10 topic in parallel.

What did you expect to see?

pulsar-perf read quits after 15 seconds.

What did you see instead?

pulsar-perf read continued waiting for the next message

Anything else?

The time limit is only checked in the MessageListener / ReaderListener, so if no new message arrives after the time limit, the consumer/reader waits indefinitely.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Sep 23, 2022
  2. mattisonchao commented on Sep 26, 2022

    @mattisonchao
    Member

    RC: In the current implementation, we put the time check in the listener. If we can't receive any message, the PerfClientUtils will never exit I think.

    Would you like to fix it? @andrasbeni

  3. andrasbeni commented on Sep 26, 2022

    @andrasbeni
    ContributorAuthor

    @mattisonchao, I don't think I have time this week, so if anybody else wants to take it in the meantime, I'm fine. But I might come back to fix this later.

  4. mattisonchao commented on Sep 27, 2022

    @mattisonchao
    Member

    @andrasbeni I see, thanks. I marked this PR with the help-wanted label.

  5. labuladong commented on Sep 27, 2022

    @labuladong
    Contributor

    @mattisonchao Could you please assign this issue to me? I will fix it.

  6. mattisonchao commented on Sep 27, 2022

    @mattisonchao
    Member

    @labuladong
    Cool, and thanks a lot for your contribution.

  7. github-actions commented on Oct 28, 2022

    @github-actions

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

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

Metadata

Metadata

Assignees

Labels

Stalehelp wantedtype/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions