-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDDS-1663. Add datanode to network topology cluster during node regis… #937
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
|
💔 -1 overall
This message was automatically generated. |
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java
Show resolved
Hide resolved
...hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java
Show resolved
Hide resolved
| // create table mapping file | ||
| String[] hostNames = {"host1", "host2", "host3", "host4"}; | ||
| String[] IpAddress = {"1.2.3.4", "2.3.4.5", "3.4.5.6", "4.5.6.7"}; | ||
| File mapFile = File.createTempFile(getClass().getSimpleName() + |
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.
NIT: Can we use GenericTestUtils.getTestDir() to make sure the test file are cleaned up safely?
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.
This will not be an issue after using the mapping file instead of creating it on the fly.
| @@ -0,0 +1,6 @@ | |||
| 10.5.0.4 /rack1 | |||
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.
we may also pass the ip->location as a file and use the table mapping class like in the unit test.
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.
Sure. Will update the UT.
|
Whitespaces in network-config are intended to separate two columns. |
| @@ -0,0 +1,6 @@ | |||
| 10.5.0.4 /rack1 | |||
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.
whitespace:tabs in line
| @@ -0,0 +1,6 @@ | |||
| 10.5.0.4 /rack1 | |||
| 10.5.0.5 /rack1 | |||
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.
whitespace:tabs in line
| @@ -0,0 +1,6 @@ | |||
| 10.5.0.4 /rack1 | |||
| 10.5.0.5 /rack1 | |||
| 10.5.0.6 /rack1 | |||
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.
whitespace:tabs in line
| 10.5.0.4 /rack1 | ||
| 10.5.0.5 /rack1 | ||
| 10.5.0.6 /rack1 | ||
| 10.5.0.7 /rack2 |
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.
whitespace:tabs in line
|
💔 -1 overall
This message was automatically generated. |
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. |
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.
whitespace:tabs in line
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
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.
whitespace:tabs in line
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| 10.5.0.4 /rack1 |
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.
whitespace:tabs in line
| # limitations under the License. | ||
|
|
||
| 10.5.0.4 /rack1 | ||
| 10.5.0.5 /rack1 |
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.
whitespace:tabs in line
|
|
||
| 10.5.0.4 /rack1 | ||
| 10.5.0.5 /rack1 | ||
| 10.5.0.6 /rack1 |
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.
whitespace:tabs in line
| 10.5.0.4 /rack1 | ||
| 10.5.0.5 /rack1 | ||
| 10.5.0.6 /rack1 | ||
| 10.5.0.7 /rack2 |
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.
whitespace:tabs in line
|
💔 -1 overall
This message was automatically generated. |
|
Comments for the new build,
|
|
@xiaoyuyao thanks Xiaoyu for the review and commit. |
Fix me If I am wrong, but TestNodeReportHandler seems to be related. It's failing with NPE after this patch but not without this patch: |
* Adding system messages to the stream * checkstyle fixes
…ter.
https://issues.apache.org/jira/browse/HDDS-1663