You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/05 13:42:09 UTC

[GitHub] [pulsar] andrasbeni opened a new pull request, #17477: [fix][broker] Extract additional servlets to the default directory by…

andrasbeni opened a new pull request, #17477:
URL: https://github.com/apache/pulsar/pull/17477

   … default
   
   Fixes #17472
   
   ### Motivation
   
   `AdditionalServlets.load` does not use the default value of `narExtractionDirectory` when the property is set to an empty string (which is the default in `conf/broker.conf`).
   
   
   ### Modifications
   
   Similar to `FieldParser.update`, empty string and null are made equivalent to AdditionalServlets.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   
   This change can be verified as follows:
   
   1. Create an AdditionalServlet implementation.
   2. Configure the broker to use it.
   3. Leave narExtractionDirectory in the broker.conf the default (empty string)
   4. Start the broker.
   5. Check /tmp/pulsar-nar for the extracted nar file
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (no)
     - The schema: (no)
     - The default values of configurations: (no)
     - The wire protocol: ( no)
     - The rest endpoints: (no)
     - The admin cli options: (no)
     - Anything that affects deployment: (no)
   
   ### Documentation
   
   Check the box below or label this PR directly.
   
   Need to update docs? 
   
   - [x] `doc-not-needed` 
   This is a bugfix
     


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] andrasbeni commented on pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #17477:
URL: https://github.com/apache/pulsar/pull/17477#issuecomment-1244119304

   /pulsarbot run-failure-checks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] hangc0276 commented on a diff in pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
hangc0276 commented on code in PR #17477:
URL: https://github.com/apache/pulsar/pull/17477#discussion_r962996205


##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/web/plugin/servlet/AdditionalServlets.java:
##########
@@ -23,6 +23,7 @@
 import java.util.Map;
 import lombok.Getter;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang.StringUtils;

Review Comment:
   Please use `org.apache.commons.lang3.StringUtils` instead of `org.apache.commons.lang.StringUtils`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] andrasbeni commented on pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #17477:
URL: https://github.com/apache/pulsar/pull/17477#issuecomment-1252606842

   @codelipenghui , do I need to rebase this PR and test it in my own fork, or can it be merged without all that?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] andrasbeni commented on pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #17477:
URL: https://github.com/apache/pulsar/pull/17477#issuecomment-1242738892

   /pulsarbot rerun-failure-checks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] andrasbeni commented on pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
andrasbeni commented on PR #17477:
URL: https://github.com/apache/pulsar/pull/17477#issuecomment-1245033024

   /pulsarbot run-failure-checks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] andrasbeni closed pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
andrasbeni closed pull request #17477: [fix][broker] Extract additional servlets to the default directory by…
URL: https://github.com/apache/pulsar/pull/17477


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] codelipenghui merged pull request #17477: [fix][broker] Extract additional servlets to the default directory by…

Posted by GitBox <gi...@apache.org>.
codelipenghui merged PR #17477:
URL: https://github.com/apache/pulsar/pull/17477


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org