Skip to content

[Bug] Broker cannot always shutdown gracefully #23982

Open
@lhotari

Description

@lhotari

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

master

Minimal reproduce step

Modify cleanup in InmemoryTopicPoliciesServiceServiceTest and run it. This will timeout:

    @AfterClass
    @Override
    protected void cleanup() throws Exception {
        admin.brokers().shutDownBrokerGracefully(0, false)
                .get(15, TimeUnit.SECONDS);
        super.internalCleanup();
    }

What did you expect to see?

The broker should be able to shutdown using the graceful shutdown API.

What did you see instead?

The shutdown timed out.

Anything else?

The shutdown times out.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/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