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

[STORM-2602] storm.zookeeper.topology.auth.payload doesn't work even you set it #2180

Merged
merged 1 commit into from
Jul 6, 2017

Conversation

liu-zhaokun
Copy link
Contributor

https://issues.apache.org/jira/browse/STORM-2602
"storm.zookeeper.topology.auth.payload" doesn't work even you have set it,because there doesn't use it when the value of STORM_ZOOKEEPER_TOPOLOGY_AUTH_PAYLOAD isn't null or other abnormal condition.

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Could you help me review this PR?I think it's a major bug.

@HeartSaVioR
Copy link
Contributor

HeartSaVioR commented Jun 29, 2017

Sorry I don't know the detail of this part and not sure this is a bug. Have you faced specific issue regarding this bug?
cc. @revans2 I guess you might know about the detail, though the code block is 3 years old.

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
I want to use my payload by setting the configuration which named "STORM_ZOOKEEPER_TOPOLOGY_AUTH_PAYLOAD",but it doesn't work.The payload of any topology always be a uuid generated by the method which named generateZookeeperDigestSecretPayload().It isn't difficult to judge the logic of "prepareZookeeperAuthentication" was defective.

@revans2
Copy link
Contributor

revans2 commented Jun 29, 2017

@liu-zhaokun

I read through the code and I would like to confirm how you are setting the payload. It looks like you are setting the payload in the storm.yaml file, and not passing it in on the command line, or setting it programmatically when submitting your topology. Is that correct?

If so then that is a use case I didn't anticipate when I first wrote the code and this change is fine, except for some indentation issues.

@revans2
Copy link
Contributor

revans2 commented Jun 29, 2017

On a related note this change looks to have broken

org.apache.storm.submitter-test / testname: test-md5-digest-secret-generation

So please take a look at why it broke. It probably just needs to be updated to always expect a payload to be returned.


String secretPayload = generateZookeeperDigestSecretPayload();
secretPayload = generateZookeeperDigestSecretPayload();
}
toRet.put(Config.STORM_ZOOKEEPER_TOPOLOGY_AUTH_PAYLOAD, secretPayload);
LOG.info("Generated ZooKeeper secret payload for MD5-digest: " + secretPayload);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this line up to be right below line 87. We don't want to log that we generated a payload unless we actually did.


String secretPayload = generateZookeeperDigestSecretPayload();
secretPayload = generateZookeeperDigestSecretPayload();
}
toRet.put(Config.STORM_ZOOKEEPER_TOPOLOGY_AUTH_PAYLOAD, secretPayload);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please adjust the indentation here.

@liu-zhaokun
Copy link
Contributor Author

@revans2
Yes,I pass this configuration by storm.config.I will take a look at that test,and adjust my code according to your opinion.Thanks for your reply.

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Hello,I have update the test,and adjust my code according to @revans2 's opinion.Could you help me merge it?

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
The new commit has passed all the tests.

@liu-zhaokun
Copy link
Contributor Author

@hmcl
Could you help me merge this PR?

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Could you help me merge this PR?

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Did you miss this PR?

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Did you miss this PR?Could you help me merge this PR?

@liu-zhaokun
Copy link
Contributor Author

@vesense
Could you help me merge it?

@liu-zhaokun
Copy link
Contributor Author

@revans2
Could you help me merge it?

@liu-zhaokun
Copy link
Contributor Author

@srdo
Could you help me merge it?

@liu-zhaokun
Copy link
Contributor Author

@harshach
Could you help me merge it?

@knusbaum
Copy link
Contributor

knusbaum commented Jul 5, 2017

+1

@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Since this PR has been "+1",could you help me merge IT now?

@liu-zhaokun
Copy link
Contributor Author

Could anyone help me merge this PR?It has been create long long ago.I only want to handle it properly.Could anyone reply to me?

@HeartSaVioR
Copy link
Contributor

HeartSaVioR commented Jul 6, 2017

+1

Btw, unfortunately we're busy with handling our own works as well, whether it is related to Storm project or not. I understand the pain when review process is dragging as I was a one of contributor for more than a year, but please take into account the fact that the review process for PR could be dragging even for months, which I really would like to avoid, but we can't keep up every time.

You may want to take a look at other pull requests in Storm project, or other OSPs to see how others leave comments for kindly reminder.

@asfgit asfgit merged commit a1b6a44 into apache:master Jul 6, 2017
@liu-zhaokun
Copy link
Contributor Author

@HeartSaVioR
Thanks very much for your hard work.I know your difficulties now,and I will support your work.

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.

5 participants