[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-15 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=727614=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-727614
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 15/Feb/22 19:05
Start Date: 15/Feb/22 19:05
Worklog Time Spent: 10m 
  Work Description: goiri merged pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 727614)
Time Spent: 2h 10m  (was: 2h)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 3.4.0
>
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-15 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=727461=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-727461
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 15/Feb/22 18:53
Start Date: 15/Feb/22 18:53
Worklog Time Spent: 10m 
  Work Description: goiri commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1039354689


   It would be nice to have a full Yetus run, not sure what happened with the 
previous one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 727461)
Time Spent: 2h  (was: 1h 50m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 3.4.0
>
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 2h
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-15 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=727260=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-727260
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 15/Feb/22 18:35
Start Date: 15/Feb/22 18:35
Worklog Time Spent: 10m 
  Work Description: yulongz commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1039887623


   @goiri This failed unit test is unrelated to my change. All tests work fine 
locally. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 727260)
Time Spent: 1h 50m  (was: 1h 40m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 3.4.0
>
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-15 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=727143=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-727143
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 15/Feb/22 16:44
Start Date: 15/Feb/22 16:44
Worklog Time Spent: 10m 
  Work Description: goiri merged pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 727143)
Time Spent: 1h 40m  (was: 1.5h)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-14 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=726851=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-726851
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 15/Feb/22 05:56
Start Date: 15/Feb/22 05:56
Worklog Time Spent: 10m 
  Work Description: yulongz commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1039887623


   @goiri This failed unit test is unrelated to my change. All tests work fine 
locally. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 726851)
Time Spent: 1.5h  (was: 1h 20m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-14 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=726427=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-726427
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 14/Feb/22 17:27
Start Date: 14/Feb/22 17:27
Worklog Time Spent: 10m 
  Work Description: goiri commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1039354689


   It would be nice to have a full Yetus run, not sure what happened with the 
previous one.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 726427)
Time Spent: 1h 20m  (was: 1h 10m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Assignee: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch, 
> HDFS-16440.004.patch
>
>  Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-10 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=724963=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-724963
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 11/Feb/22 06:54
Start Date: 11/Feb/22 06:54
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1035926867


   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 46s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  | 185m 52s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   0m 44s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  compile  |   0m 40s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  checkstyle  |   0m 29s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 14s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   2m 24s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   1m  0s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 19s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  20m 29s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 35s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 36s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javac  |   0m 36s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 32s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  javac  |   0m 33s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  1s |  |  The patch has no blanks 
issues.  |
   | -0 :warning: |  checkstyle  |   0m 18s | 
[/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/3/artifact/out/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt)
 |  hadoop-hdfs-project/hadoop-hdfs-rbf: The patch generated 1 new + 0 
unchanged - 0 fixed = 1 total (was 0)  |
   | +1 :green_heart: |  mvnsite  |   0m 34s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 32s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   0m 49s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 20s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  20m  4s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | -1 :x: |  unit  |  21m  5s | 
[/patch-unit-hadoop-hdfs-project_hadoop-hdfs-rbf.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/3/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs-rbf.txt)
 |  hadoop-hdfs-rbf in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 37s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 263m 40s |  |  |
   
   
   | Reason | Tests |
   |---:|:--|
   | Failed junit tests | 
hadoop.fs.contract.router.web.TestRouterWebHDFSContractCreate |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/3/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3971 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux d6af9c64f8a5 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 45aa8427dfafdd031cec2c234a24ce766189b7c8 |
   | Default Java | Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 |
   | Multi-JDK versions | 

[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-10 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=724910=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-724910
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 11/Feb/22 03:01
Start Date: 11/Feb/22 03:01
Worklog Time Spent: 10m 
  Work Description: yulongz commented on a change in pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#discussion_r804329463



##
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterNamenodeHeartbeat.java
##
@@ -211,6 +216,54 @@ public void testHearbeat() throws InterruptedException, 
IOException {
 assertEquals(NAMENODES[1], standby.getNamenodeId());
   }
 
+  @Test
+  public void testNamenodeHeartbeatServiceHAServiceProtocolProxy(){
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, -1, 1003,
+"host01.test:1000", "host02.test:1000");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, -1, 1003,
+"host01.test:1001", "host02.test:1001");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+  }
+
+  private void testNamenodeHeartbeatServiceHAServiceProtocol(
+  String nsId, String nnId,
+  int rpcPort, int servicePort,
+  int lifelinePort, int webAddressPort,
+  String expected1, String expected2) {
+Configuration conf = generateNamenodeConfiguration(nsId, nnId,
+rpcPort, servicePort, lifelinePort, webAddressPort);
+
+Router testRouter = new Router();
+testRouter.setConf(conf);
+
+Collection heartbeatServices =
+testRouter.createNamenodeHeartbeatServices();
+
+assertEquals(2, heartbeatServices.size());
+
+Iterator iterator = heartbeatServices.iterator();
+NamenodeHeartbeatService service = iterator.next();
+service.init(conf);
+assertNotNull(service.getLocalTarget());
+LOG.info("NamenodeHeartbeatService HealthMonitorAddress {}",
+service.getLocalTarget().getHealthMonitorAddress().toString());
+assertEquals(expected1, 
service.getLocalTarget().getHealthMonitorAddress().toString());
+
+service = iterator.next();

Review comment:
   Thanks for your advice.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 724910)
Time Spent: 1h  (was: 50m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch
>
>  Time Spent: 1h
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-10 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=724636=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-724636
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 10/Feb/22 17:21
Start Date: 10/Feb/22 17:21
Worklog Time Spent: 10m 
  Work Description: goiri commented on a change in pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#discussion_r803917406



##
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterNamenodeHeartbeat.java
##
@@ -211,6 +216,54 @@ public void testHearbeat() throws InterruptedException, 
IOException {
 assertEquals(NAMENODES[1], standby.getNamenodeId());
   }
 
+  @Test
+  public void testNamenodeHeartbeatServiceHAServiceProtocolProxy(){
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, -1, 1003,
+"host01.test:1000", "host02.test:1000");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, -1, 1003,
+"host01.test:1001", "host02.test:1001");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+  }
+
+  private void testNamenodeHeartbeatServiceHAServiceProtocol(
+  String nsId, String nnId,
+  int rpcPort, int servicePort,
+  int lifelinePort, int webAddressPort,
+  String expected1, String expected2) {
+Configuration conf = generateNamenodeConfiguration(nsId, nnId,
+rpcPort, servicePort, lifelinePort, webAddressPort);
+
+Router testRouter = new Router();
+testRouter.setConf(conf);
+
+Collection heartbeatServices =
+testRouter.createNamenodeHeartbeatServices();
+
+assertEquals(2, heartbeatServices.size());
+
+Iterator iterator = heartbeatServices.iterator();
+NamenodeHeartbeatService service = iterator.next();
+service.init(conf);
+assertNotNull(service.getLocalTarget());
+LOG.info("NamenodeHeartbeatService HealthMonitorAddress {}",
+service.getLocalTarget().getHealthMonitorAddress().toString());

Review comment:
   If we are going to log this, we probably should extract it a little.

##
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterNamenodeHeartbeat.java
##
@@ -211,6 +216,54 @@ public void testHearbeat() throws InterruptedException, 
IOException {
 assertEquals(NAMENODES[1], standby.getNamenodeId());
   }
 
+  @Test
+  public void testNamenodeHeartbeatServiceHAServiceProtocolProxy(){
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, -1, 1003,
+"host01.test:1000", "host02.test:1000");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, -1, 1003,
+"host01.test:1001", "host02.test:1001");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, 1001, 1002, 1003,
+"host01.test:1002", "host02.test:1002");
+  }
+
+  private void testNamenodeHeartbeatServiceHAServiceProtocol(
+  String nsId, String nnId,
+  int rpcPort, int servicePort,
+  int lifelinePort, int webAddressPort,
+  String expected1, String expected2) {
+Configuration conf = generateNamenodeConfiguration(nsId, nnId,
+rpcPort, servicePort, lifelinePort, webAddressPort);
+
+Router testRouter = new Router();
+testRouter.setConf(conf);
+
+Collection heartbeatServices =
+testRouter.createNamenodeHeartbeatServices();
+
+assertEquals(2, heartbeatServices.size());
+
+Iterator iterator = heartbeatServices.iterator();
+NamenodeHeartbeatService service = iterator.next();
+service.init(conf);
+assertNotNull(service.getLocalTarget());
+LOG.info("NamenodeHeartbeatService HealthMonitorAddress {}",
+service.getLocalTarget().getHealthMonitorAddress().toString());
+assertEquals(expected1, 
service.getLocalTarget().getHealthMonitorAddress().toString());
+
+service = iterator.next();

Review comment:
   What if we have service0 and service1 to make it easier to follow?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue 

[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-09 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=724260=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-724260
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 10/Feb/22 03:55
Start Date: 10/Feb/22 03:55
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1034467090


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 40s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  32m 20s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   0m 44s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  compile  |   0m 40s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  checkstyle  |   0m 28s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   0m 44s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   0m 45s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   0m 59s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 18s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  20m 20s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 34s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 35s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javac  |   0m 35s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 31s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  javac  |   0m 32s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  1s |  |  The patch has no blanks 
issues.  |
   | -0 :warning: |  checkstyle  |   0m 19s | 
[/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/2/artifact/out/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt)
 |  hadoop-hdfs-project/hadoop-hdfs-rbf: The patch generated 1 new + 0 
unchanged - 0 fixed = 1 total (was 0)  |
   | +1 :green_heart: |  mvnsite  |   0m 34s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 34s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   0m 52s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 19s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  20m 13s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | +1 :green_heart: |  unit  |  20m 44s |  |  hadoop-hdfs-rbf in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 35s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 107m 13s |  |  |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/2/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3971 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux 0f2bf5663b64 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / d29c8217fa3e288fbfd7092dabd60d79ad1d57fd |
   | Default Java | Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/2/testReport/ |
   | Max. process+thread count | 2747 (vs. ulimit of 5500) |
   | modules | C: 

[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-09 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=723834=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-723834
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 09/Feb/22 17:21
Start Date: 09/Feb/22 17:21
Worklog Time Spent: 10m 
  Work Description: goiri commented on a change in pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#discussion_r802909602



##
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterNamenodeHeartbeat.java
##
@@ -211,6 +216,54 @@ public void testHearbeat() throws InterruptedException, 
IOException {
 assertEquals(NAMENODES[1], standby.getNamenodeId());
   }
 
+  @Test
+  public void testNamenodeHeartbeatServiceHAServiceProtocolProxy(){
+testNamenodeHeartbeatServiceHAServiceProtocol(
+"test-ns", "nn", 1000, -1, -1, 1003,

Review comment:
   The spacing doesn't look correct.

##
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterNamenodeHeartbeat.java
##
@@ -50,13 +50,18 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.TestName;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Test the service that heartbeats the state of the namenodes to the State
  * Store.
  */
 public class TestRouterNamenodeHeartbeat {
 
+  private static final Logger LOG =
+  LoggerFactory.getLogger(TestRouterNamenodeHeartbeat.class);

Review comment:
   The space doesn't look correct.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 723834)
Time Spent: 0.5h  (was: 20m)

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Priority: Minor
>  Labels: pull-request-available
> Attachments: HDFS-16440.001.patch, HDFS-16440.003.patch
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-09 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=723674=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-723674
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 09/Feb/22 13:57
Start Date: 09/Feb/22 13:57
Worklog Time Spent: 10m 
  Work Description: hadoop-yetus commented on pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971#issuecomment-1033788081


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |::|--:|:|::|:---:|
   | +0 :ok: |  reexec  |   0m 42s |  |  Docker mode activated.  |
    _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  0s |  |  codespell was not available.  |
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
    _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  49m 53s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   0m 49s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  compile  |   0m 40s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  checkstyle  |   0m 24s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   0m 52s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   0m 44s |  |  trunk passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   1m  4s |  |  trunk passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 24s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  21m 10s |  |  branch has no errors 
when building and testing our client artifacts.  |
    _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 36s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 36s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javac  |   0m 36s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 39s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  javac  |   0m 39s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | -0 :warning: |  checkstyle  |   0m 16s | 
[/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/1/artifact/out/results-checkstyle-hadoop-hdfs-project_hadoop-hdfs-rbf.txt)
 |  hadoop-hdfs-project/hadoop-hdfs-rbf: The patch generated 1 new + 0 
unchanged - 0 fixed = 1 total (was 0)  |
   | +1 :green_heart: |  mvnsite  |   0m 41s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 53s |  |  the patch passed with JDK 
Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04  |
   | +1 :green_heart: |  javadoc  |   0m 48s |  |  the patch passed with JDK 
Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07  |
   | +1 :green_heart: |  spotbugs  |   1m 27s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  21m 24s |  |  patch has no errors 
when building and testing our client artifacts.  |
    _ Other Tests _ |
   | +1 :green_heart: |  unit  |  20m 38s |  |  hadoop-hdfs-rbf in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 33s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 127m 31s |  |  |
   
   
   | Subsystem | Report/Notes |
   |--:|:-|
   | Docker | ClientAPI=1.41 ServerAPI=1.41 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/1/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/3971 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell |
   | uname | Linux 1260255e1e64 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 
11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 19cc31759b155676784f6d4ff7a6864e892bb107 |
   | Default Java | Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 |
   | Multi-JDK versions | 
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.13+8-Ubuntu-0ubuntu1.20.04 
/usr/lib/jvm/java-8-openjdk-amd64:Private 
Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07 |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3971/1/testReport/ |
   | Max. process+thread count | 2751 (vs. ulimit of 5500) |
   | modules | C: 

[jira] [Work logged] (HDFS-16440) RBF: Support router get HAServiceStatus with Lifeline RPC address

2022-02-09 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HDFS-16440?focusedWorklogId=723599=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-723599
 ]

ASF GitHub Bot logged work on HDFS-16440:
-

Author: ASF GitHub Bot
Created on: 09/Feb/22 11:48
Start Date: 09/Feb/22 11:48
Worklog Time Spent: 10m 
  Work Description: yulongz opened a new pull request #3971:
URL: https://github.com/apache/hadoop/pull/3971


   JIRA: [HDFS-16440](https://issues.apache.org/jira/browse/HDFS-16440)
   
   NamenodeHeartbeatService gets HAServiceStatus using 
NNHAServiceTarget.getProxy. When we set a special 
dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 723599)
Remaining Estimate: 0h
Time Spent: 10m

> RBF: Support router get HAServiceStatus with Lifeline RPC address
> -
>
> Key: HDFS-16440
> URL: https://issues.apache.org/jira/browse/HDFS-16440
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: rbf
>Reporter: YulongZ
>Priority: Minor
> Attachments: HDFS-16440.001.patch, HDFS-16440.002.patch
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> NamenodeHeartbeatService gets HAServiceStatus using 
> NNHAServiceTarget.getProxy. When we set a special 
> dfs.namenode.lifeline.rpc-address , NamenodeHeartbeatService may get 
> HAServiceStatus using NNHAServiceTarget.getHealthMonitorProxy.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org