-
Notifications
You must be signed in to change notification settings - Fork 593
HDDS-5486. [Ozone-Streaming] Streaming supports writing in Pipline mode #2682
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
Conversation
|
@szetszwo Please ignore the problem I asked earlier, I have found the root cause. |
That's great! |
szetszwo
left a comment
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.
A minor comment inlined.
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.
RoutingTable only needs RaftPeerId. So we can have List<RaftPeerId> instead of List<RaftPeer>.
|
@captainzmc , can you add some description on the jira for this? The patch otherwise looks good. Please remove the commented out code. |
96f98f0 to
fe7c4e3
Compare
Yes, I have updated jIRA and add the description. |
|
hi @szetszwo, The code has been updated and tested. Can you help take another look? |
szetszwo
left a comment
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.
Thanks for the update. Some comments inlined.
|
|
||
| public RoutingTable getRoutingTable(Pipeline pipeline) { | ||
| RaftPeerId primary = null; | ||
| List<RaftPeerId> raftPeers = new ArrayList(); |
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 should have an "<>", i.e. new ArrayList<>().
| RaftPeer.Builder raftPeerBuilder = RaftPeer.newBuilder(); | ||
| raftPeerBuilder.setId(dn.getUuidString()).setAddress(dn.getIpAddress() | ||
| + ":" + dn.getPort(DatanodeDetails.Port.Name.RATIS_SERVER) | ||
| .getValue()); | ||
| raftPeerBuilder.setDataStreamAddress(dn.getIpAddress() | ||
| + ":" + dn.getPort(DatanodeDetails.Port.Name.RATIS_DATASTREAM) | ||
| .getValue()); | ||
| raftPeerBuilder.setAdminAddress(dn.getIpAddress() | ||
| + ":" + dn.getPort(DatanodeDetails.Port.Name.RATIS_ADMIN).getValue()); | ||
| raftPeerBuilder.setClientAddress(dn.getIpAddress() | ||
| + ":" + dn.getPort(DatanodeDetails.Port.Name.RATIS).getValue()); |
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.
Since RaftPeer is not needed, let's just create a RaftPeerId.
final RaftPeerId id = RaftPeerId.valueOf(dn.getUuidString());
|
|
||
| } | ||
| } catch (IOException e) { | ||
| e.printStackTrace(); |
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 should return null when there is an exception.
574fa34 to
7741ade
Compare
szetszwo
left a comment
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.
+1 the change looks good.
|
CI is performing well on my personal branch. This failure should be accidental. |
…de (apache#2682) (cherry picked from commit 8124a1c)
What changes were proposed in this pull request?
Streaming supports writing in Pipline mode
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5486