-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Client]Allow to override PULSAR_MEM settings via PULSAR_EXTRA_OPS #13381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
`pulsar-client` runs `conf/pulsar_tools_env.sh` to set `PULSAR_EXTRA_OPTS`. If `PULSAR_EXTRA_OPTS` are given in the command line and contain `-Xmx`, it will be overridden by `PULSAR_MEM`.
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
michaeljmarshall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Why we need this feature, you can config both |
@shoothzj I believe that this change improves consistency. The assumption is that you can override other options by setting them in PULSAR_EXTRA_OPTS. I made a similar improvement to consistency for |
…pache#13381) ### Motivation `pulsar-client` runs `conf/pulsar_tools_env.sh` to set `PULSAR_EXTRA_OPTS`. If `PULSAR_EXTRA_OPTS` are given in the command line and contain `-Xmx`, it will be overridden by `PULSAR_MEM`. ### Modifications Exchange the order of applying env variables. First go the hardcoded PULSAR_MEM settings, then potentially the user settings.
…ache#13381 (cherry picked from commit 0c2eaa2)
Motivation
pulsar-clientrunsconf/pulsar_tools_env.shto setPULSAR_EXTRA_OPTS. IfPULSAR_EXTRA_OPTSare given in the command line and contain-Xmx, it will be overridden byPULSAR_MEM.Modifications
Exchange the order of applying env variables. First go the hardcoded PULSAR_MEM settings, then potentially the user settings.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If
yeswas chosen, please highlight the changesDocumentation
Check the box below and label this PR (if you have committer privilege).
Need to update docs?
no-need-docChange in a shell script, which is not documented.