Skip to content

[BUG]Unknown reason causes getPositionAfterN infinite loop #17967

Closed

Description

@keyboardbobo

@poorbarcode #16859

Search before asking

  • I searched in the issues and found nothing similar.

Version

pulsar 2.9.2, bookkeeper 4.14.4

Minimal reproduce step

3DA3DF46-3111-44D0-B6D8-956AF6BD92D2

B89CE8F5-C446-4615-9D55-53CB76432F8B

B705F7C9-4DC8-4A22-9ABD-3C7B53987EFB

What did you expect to see?

Return normally, the task is executed normally

What did you see instead?

The BookKeeperClientWorker-OrderedExecutor-15-0 thread has been executing the getPositionAfterN method, and its thread pool task accumulation has reached more than 700,000

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Oct 8, 2022
  2. changed the title [-]Unknown reason causes getPositionAfterN infinite loop[/-] [+][BUG]Unknown reason causes getPositionAfterN infinite loop[/+] on Oct 8, 2022
  3. self-assigned this
    on Oct 8, 2022
  4. keyboardbobo commented on Oct 8, 2022

    @keyboardbobo
    Author

    @Technoboy-
    Should the condition of lastLedger be modified to :
    if (currentLedger != null && currentLedgerId >= currentLedger.getId())

  5. Technoboy- commented on Oct 8, 2022

    @Technoboy-
    Contributor

    @Technoboy- Should the condition of lastLedger be modified to : if (currentLedger != null && currentLedgerId >= currentLedger.getId())

    Yes, I think so.

  6. Technoboy- commented on Oct 8, 2022

    @Technoboy-
    Contributor

    @keyboardbobo What's the value of startPosition?
    Is this issue reproducible?

  7. keyboardbobo commented on Oct 9, 2022

    @keyboardbobo
    Author

    @keyboardbobo What's the value of startPosition? Is this issue reproducible?

    @Technoboy-
    I have restarted the service and can no longer see the value of startPosition. In the case of large traffic, the stress test can generally be reproduced for a day and a half, and the probability of recurrence is very high. It may be that one or more thread groups of an instance appear.

    What value do you want to see, I will save it for you to see next time

  8. Technoboy- commented on Oct 9, 2022

    @Technoboy-
    Contributor

    @keyboardbobo What's the value of startPosition? Is this issue reproducible?

    @Technoboy- I have restarted the service and can no longer see the value of startPosition. In the case of large traffic, the stress test can generally be reproduced for a day and a half, and the probability of recurrence is very high. It may be that one or more thread groups of an instance appear.

    What value do you want to see, I will save it for you to see next time

    Ok. I will push a fix for the current issue.

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

Metadata

Metadata

Assignees

Labels

type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions