Skip to content

[Bug] Additional servlets are extracted to wrong directory when narExtractionDirectory is not set #17472

Closed

Description

@andrasbeni

Search before asking

  • I searched in the issues and found nothing similar.

Version

Pulsar version: 2.11-SNAPSHOT git hash: 359cfa7
OS: Mac OS

Minimal reproduce step

  • Create an AdditionalServlet implementation.
  • Configure broker to use it.
  • Leave narExtractionDirectory in the broker.conf the default (empty string)
  • Start the broker.

What did you expect to see?

The broker should have extracted the file to /tmp/pulsar-nar as stated in the description of narExtractionDirectory.

What did you see instead?

The broker tried to extract the .nar file to/pulsar-nar.

Anything else?

Other plugin loaders (protocol handler, entry filter) work correctly.
The problem is a difference in how e.g. ProtocolHandlers.load and AdditionalServlets.load read the property.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/bug
    on Sep 5, 2022
  2. andrasbeni commented on Sep 5, 2022

    @andrasbeni
    ContributorAuthor

    For a quick reproduction, see PR #17450 :
    When removing brokerEnvs.put(PREFIX + "narExtractionDirectory", "/tmp"); from TestAdditionalServlets.setupCluster, the tests fail because the broker is unable to start.

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

    type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions