-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-1868. Ozone pipelines should be marked as ready only after the leader election is complete. #23
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
Merged
Merged
HDDS-1868. Ozone pipelines should be marked as ready only after the leader election is complete. #23
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2a2690b
HDDS-1868. Reset, rebased and addressed comments from reviews.
swagle 84bcbb2
HDDS-1868. Remove unused method.
swagle dfb4fad
HDDS-1868. Fixed unused imports.
swagle 553c6b4
HDDS-1868. Remove unused method.
swagle 5f0ee8c
HDDS-1868. Changed the leaderIdMap to CHM.
swagle 27f5c09
HDDS-1868. Checkstyle fix.
swagle 89cb6ee
HDDS-1868. Addressed review comments.
swagle ca96b9c
HDDS-1868. Fix for findbugs violation.
swagle 4d61be1
HDDS-1868. Addressing latest review comments.
swagle f04ec9c
HDDS-1868. Revised patch based on comments from msingh and nanda.
swagle f6ecae7
HDDS-1868. New changes based on discussion and unit test fixes.
swagle d241b5e
HDDS-1868. Checkstyle + UT fix.
swagle d7ebe8c
HDDS-1868. Unit test fixes.
swagle 84912ae
HDDS-1868. Fix PipelineReportHandler and spurious code.
swagle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,13 +67,13 @@ enum PipelineState { | |
| } | ||
|
|
||
| message Pipeline { | ||
| required string leaderID = 1; | ||
| repeated DatanodeDetailsProto members = 2; | ||
| repeated DatanodeDetailsProto members = 1; | ||
| // TODO: remove the state and leaderID from this class | ||
| optional PipelineState state = 3 [default = PIPELINE_ALLOCATED]; | ||
| optional ReplicationType type = 4 [default = STAND_ALONE]; | ||
| optional ReplicationFactor factor = 5 [default = ONE]; | ||
| required PipelineID id = 6; | ||
| optional PipelineState state = 2 [default = PIPELINE_ALLOCATED]; | ||
| optional ReplicationType type = 3 [default = STAND_ALONE]; | ||
| optional ReplicationFactor factor = 4 [default = ONE]; | ||
| required PipelineID id = 5; | ||
| optional string leaderID = 6; | ||
|
||
| repeated uint32 memberOrders = 7; | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nitpick: We can make it strongly typed by making the type as
DatanodeDetailsThere 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.
But if I do that, in order to construct Pipeline from proto, I have to lookup DatanodeDetails based on UUID, which is a map in NodeManager. Not sure why making this into DatanodeDetails is better?
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.
It is just that it will be explicit what this UUID represent.