-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Do not pass druid.indexer.runner.javaOpts
to Peon as a property
#1842
Conversation
@@ -187,7 +187,8 @@ public TaskStatus call() | |||
|
|||
for (String propName : props.stringPropertyNames()) { | |||
for (String allowedPrefix : config.getAllowedPrefixes()) { | |||
if (propName.startsWith(allowedPrefix)) { | |||
// See https://github.com/druid-io/druid/issues/1841 | |||
if (propName.startsWith(allowedPrefix) && !"druid.indexer.runner.javaOpts".equals(propName)) { |
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.
extract this as a String constant, since its used at multiple places ?
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.
Fixed
* Still places `druid.indexer.runner.javaOpts` on the command line, but the Peon no longer tries to have the property `druid.indexer.runner.javaOpts` set * Fixes apache#1841
👍 |
travis failed - |
@@ -187,7 +187,9 @@ public TaskStatus call() | |||
|
|||
for (String propName : props.stringPropertyNames()) { | |||
for (String allowedPrefix : config.getAllowedPrefixes()) { | |||
if (propName.startsWith(allowedPrefix)) { | |||
// See https://github.com/druid-io/druid/issues/1841 | |||
if (propName.startsWith(allowedPrefix) |
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.
is it possible to add UT to catch the bug mentioned?
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.
ForkingTaskRunner is pretty much void of unit tests. I'm trying to add some in the Tiering extension, but unless really required I'm not interested in spending the time doing UTs for something I'm trying to replace.
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.
ok
Do not pass `druid.indexer.runner.javaOpts` to Peon as a property
[BACKPORT #1842] Do not pass `druid.indexer.runner.javaOpts` to Peon as a property
druid.indexer.runner.javaOpts
on the command line, but the Peon no longer tries to have the propertydruid.indexer.runner.javaOpts
set