Uh oh!
There was an error while loading. Please reload this page.
HDDS-4296. SCM changes to process Layout Info in heartbeat request/response - #1486
Conversation
avijayanhwx
commented
Oct 9, 2020
linyiqun
left a comment
There was a problem hiding this comment.
Hi @prashantpogde , some initial review comments from me.
It would be better if you can additionally add corresponding unit test for this PR change.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
avijayanhwx
left a comment
There was a problem hiding this comment.
Thanks for working on this @prashantpogde. A couple of general comments.
@fapifta has also introduced states a component can be in, with respect to Upgrade. We should discuss and use just one set of states.
I am not convinced why we need another report for Layout Version handling. Layout version is like node metadata, and should be sent in every heartbeat. Also, I am not sure if we can handle the LayoutVersion report through an event handler since it is 'async' and there can be delay in handling.
Updated with new set of changes after taking care of all review comments. Please take a look. |
avijayanhwx
left a comment
There was a problem hiding this comment.
@prashantpogde Patch generally looks good to me. Can we add a unit test for the layout version check during heartbeat processing?
Uh oh!
There was an error while loading. Please reload this page.
avijayanhwx
left a comment
There was a problem hiding this comment.
LGTM +1.
@prashantpogde Are you planning to comment out the other 2 unused variable findbug failures as well?
Can we trigger an empty commit to get acceptance tests(unsecure) to pass?
prashantpogde
commented
Oct 30, 2020
Failure in TestOzoneManagerHAMetadataOnly is unrelated with the changes. |
avijayanhwx
commented
Oct 30, 2020
Thank you for the patch @prashantpogde and the review @linyiqun. |
What changes were proposed in this pull request?
SCM changes to process Layout Info in heartbeat request/response
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-4296
How was this patch tested?
UT. I will fix any CI failure.