You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Additional servlets are extracted to wrong directory when narExtractionDirectory is not set #17472
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.
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.
Activity
andrasbeni commentedon Sep 5, 2022
For a quick reproduction, see PR #17450 :
When removing
brokerEnvs.put(PREFIX + "narExtractionDirectory", "/tmp");fromTestAdditionalServlets.setupCluster, the tests fail because the broker is unable to start.