Skip to content

Conversation

@prashantpogde
Copy link
Contributor

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.

@avijayanhwx
Copy link
Contributor

cc @fapifta / @sodonnel Please review.

Copy link
Contributor

@linyiqun linyiqun left a comment

Choose a reason for hiding this comment

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

Hi @prashantpogde , some initial review comments from me.
It would be better if you can additionally add corresponding unit test for this PR change.

Copy link
Contributor

@avijayanhwx avijayanhwx left a comment

Choose a reason for hiding this comment

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

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.

@prashantpogde
Copy link
Contributor Author

prashantpogde commented Oct 21, 2020

Updated with new set of changes after taking care of all review comments. Please take a look.

Copy link
Contributor

@avijayanhwx avijayanhwx left a comment

Choose a reason for hiding this comment

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

@prashantpogde Patch generally looks good to me. Can we add a unit test for the layout version check during heartbeat processing?

Copy link
Contributor

@avijayanhwx avijayanhwx left a comment

Choose a reason for hiding this comment

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

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
Copy link
Contributor Author

Failure in TestOzoneManagerHAMetadataOnly is unrelated with the changes.

@avijayanhwx avijayanhwx merged commit 8e29229 into apache:HDDS-3698-upgrade Oct 30, 2020
@avijayanhwx
Copy link
Contributor

Thank you for the patch @prashantpogde and the review @linyiqun.

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