Skip to content
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

Merged
merged 1 commit into from
Oct 21, 2015

Conversation

drcrallen
Copy link
Contributor

@@ -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)) {
Copy link
Member

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 ?

Copy link
Contributor Author

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
@nishantmonu51
Copy link
Member

👍

@drcrallen drcrallen added this to the 0.9.0 milestone Oct 20, 2015
@nishantmonu51
Copy link
Member

travis failed -
Failed tests:
DruidCoordinatorTest.testCoordinatorRun:349 expected:<1> but was:<0>
Reopening

@@ -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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

himanshug added a commit that referenced this pull request Oct 21, 2015
Do not pass `druid.indexer.runner.javaOpts` to Peon as a property
@himanshug himanshug merged commit b7c68ec into apache:master Oct 21, 2015
@drcrallen drcrallen deleted the DRUID-1841 branch October 21, 2015 18:16
xvrl added a commit that referenced this pull request Dec 3, 2015
[BACKPORT #1842] Do not pass `druid.indexer.runner.javaOpts` to Peon as a property
@gianm gianm mentioned this pull request Dec 4, 2015
seoeun25 pushed a commit to seoeun25/incubator-druid that referenced this pull request Jan 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants