Skip to content
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

HDFS-15281. ZKFC ignores dfs.namenode.rpc-bind-host and uses dfs.namenode.rpc-address to bind to host address #1964

Merged
merged 6 commits into from
Apr 25, 2020

Conversation

dhirajh
Copy link
Contributor

@dhirajh dhirajh commented Apr 19, 2020

Details of the issue is here: https://issues.apache.org/jira/browse/HDFS-15281

NOTICE

Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HADOOP-XXXXX. Fix a typo in YYY.)
For more details, please see https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 38s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 0m 57s Maven dependency ordering for branch
+1 💚 mvninstall 20m 6s trunk passed
+1 💚 compile 17m 7s trunk passed
+1 💚 checkstyle 2m 39s trunk passed
+1 💚 mvnsite 2m 57s trunk passed
+1 💚 shadedclient 21m 4s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 59s trunk passed
+0 🆗 spotbugs 3m 5s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 3s hadoop-hdfs-project/hadoop-hdfs in trunk has 3 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
+1 💚 mvninstall 2m 0s the patch passed
+1 💚 compile 16m 22s the patch passed
+1 💚 javac 16m 22s the patch passed
-0 ⚠️ checkstyle 2m 37s root: The patch generated 41 new + 41 unchanged - 0 fixed = 82 total (was 41)
+1 💚 mvnsite 2m 55s the patch passed
-1 ❌ whitespace 0m 0s The patch has 2 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚 shadedclient 14m 1s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 2m 2s the patch passed
+1 💚 findbugs 5m 34s the patch passed
_ Other Tests _
+1 💚 unit 9m 11s hadoop-common in the patch passed.
-1 ❌ unit 93m 23s hadoop-hdfs in the patch passed.
+1 💚 asflicense 1m 4s The patch does not generate ASF License warnings.
221m 49s
Reason Tests
Failed junit tests hadoop.hdfs.server.blockmanagement.TestUnderReplicatedBlocks
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/artifact/out/Dockerfile
GITHUB PR #1964
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux b7268dc3b636 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 personality/hadoop.sh
git revision trunk / 1824aee
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/artifact/out/whitespace-eol.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/testReport/
Max. process+thread count 4378 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/1/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 24m 54s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for branch
+1 💚 mvninstall 18m 57s trunk passed
+1 💚 compile 16m 59s trunk passed
+1 💚 checkstyle 2m 37s trunk passed
+1 💚 mvnsite 2m 53s trunk passed
+1 💚 shadedclient 20m 59s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 59s trunk passed
+0 🆗 spotbugs 3m 2s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 0s hadoop-hdfs-project/hadoop-hdfs in trunk has 3 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 1m 59s the patch passed
+1 💚 compile 16m 12s the patch passed
+1 💚 javac 16m 12s the patch passed
-0 ⚠️ checkstyle 2m 44s root: The patch generated 41 new + 41 unchanged - 0 fixed = 82 total (was 41)
+1 💚 mvnsite 2m 56s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 14m 21s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 58s the patch passed
+1 💚 findbugs 5m 23s the patch passed
_ Other Tests _
+1 💚 unit 9m 10s hadoop-common in the patch passed.
-1 ❌ unit 93m 41s hadoop-hdfs in the patch passed.
+1 💚 asflicense 1m 3s The patch does not generate ASF License warnings.
244m 22s
Reason Tests
Failed junit tests hadoop.hdfs.server.namenode.ha.TestEditLogTailer
hadoop.hdfs.server.blockmanagement.TestUnderReplicatedBlocks
hadoop.hdfs.TestReconstructStripedFile
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/artifact/out/Dockerfile
GITHUB PR #1964
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 845a04822ca0 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 personality/hadoop.sh
git revision trunk / 79e03fb
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/artifact/out/diff-checkstyle-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/testReport/
Max. process+thread count 4604 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Member

@liuml07 liuml07 left a comment

Choose a reason for hiding this comment

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

The patch looks good to me overall, left some comments and will review this again. Thanks for the patch!

import org.apache.hadoop.conf.Configuration;
import static org.apache.hadoop.hdfs.DFSConfigKeys.*;


Copy link
Member

Choose a reason for hiding this comment

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

nit: this can be one blank line.

import org.apache.hadoop.hdfs.HdfsConfiguration;
import org.apache.hadoop.hdfs.MiniDFSCluster;

public class TestDFSZKFCRespectsBindHostKeys {
Copy link
Member

Choose a reason for hiding this comment

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

Alternatively, this test can go to TestDFSZKFailoverController? We may reuse existing setup and shutdown methods hopefully?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. I moved tests case to TestDFSZKFailoverController

.setIpcPort(ServerSocketUtil.getPort(10022, 100))));
// ZKFC should not bind the wildcard address by default.
try {

Copy link
Member

Choose a reason for hiding this comment

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

nit: remove blank lines within try clause? Seems related statements. It's fine if you prefer keeping them.
nit: line length is usually 80 characters. You can check the checkstyle reports from the QA comment, for e.g. https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/2/artifact/out/diff-checkstyle-root.txt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

DFSZKFailoverController zkfc = DFSZKFailoverController.create(
conf);

assertThat("Bind address not expected to be wildcard by default.",
Copy link
Member

Choose a reason for hiding this comment

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

nit: assertEquals is simpler.

assertThat("Bind address not expected to be wildcard by default.",
    LOCALHOST_SERVER_ADDRESS, zkfc.getRpcAddressToBindTo().getHostString());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

.addNN(new MiniDFSNNTopology.NNConf("nn2")
.setIpcPort(ServerSocketUtil.getPort(10022, 100))));
// ZKFC should not bind the wildcard address by default.
try {
Copy link
Member

Choose a reason for hiding this comment

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

If you like, you can use try-with on MiniDFSCluster, e.g.

try (MiniDFSCluster cluster = new MiniDFSCluster.Builder...) {
    // some stuff using cluster
}

and later

try (MiniDFSCluster cluster = new MiniDFSCluster.Builder...) {
    // some stuff using cluster
}

without name conflicts and no necessary to reset cluster to null in-between.

But if you move this to TestDFSZKFailoverController, we can split this test method into two methods and reuse the mini cluster defined there. I'm fine either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Went with the first suggestion

*/
package org.apache.hadoop.hdfs.tools;

import static org.hamcrest.core.IsNot.not;
Copy link
Member

Choose a reason for hiding this comment

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

nit: not used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

LOG.info("Testing with " + DFS_NAMENODE_RPC_BIND_HOST_KEY);

// Tell NN to bind the wildcard address.
conf.set(DFS_NAMENODE_RPC_BIND_HOST_KEY, WILDCARD_ADDRESS);
Copy link
Member

Choose a reason for hiding this comment

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

I'm thinking, since we care more about the service RPC binding host, this config should be setting that only.

conf.set(DFS_NAMENODE_SERVICE_RPC_BIND_HOST_KEY, WILDCARD_ADDRESS);

Is this agreed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

/** Given a configuration get the bind host that could be used by ZKFC.
* We derive it from NN service rpc bind host or NN rpc bind host.
*/
protected String getZkfcServerBindHost(Configuration conf) {
Copy link
Member

Choose a reason for hiding this comment

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

This actually can be private static.

  1. First it can be static because it does not refer to this ZKFC object fields
  2. Other methods are protected I guess because they are overriding parent class ZKFailoverController methods. When overriding, we can not change the scope to a smaller one (aka weaker access privilege). So here we keep the protected keyword.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 52s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 0m 50s Maven dependency ordering for branch
+1 💚 mvninstall 22m 50s trunk passed
-1 ❌ compile 19m 50s root in trunk failed.
+1 💚 checkstyle 3m 7s trunk passed
+1 💚 mvnsite 3m 11s trunk passed
+1 💚 shadedclient 24m 3s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 53s trunk passed
+0 🆗 spotbugs 3m 57s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 55s hadoop-hdfs-project/hadoop-hdfs in trunk has 3 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 2m 11s the patch passed
-1 ❌ compile 19m 8s root in the patch failed.
-1 ❌ javac 19m 8s root in the patch failed.
-0 ⚠️ checkstyle 3m 3s root: The patch generated 41 new + 46 unchanged - 0 fixed = 87 total (was 46)
+1 💚 mvnsite 3m 3s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 16m 30s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 2m 0s the patch passed
+1 💚 findbugs 6m 10s the patch passed
_ Other Tests _
+1 💚 unit 10m 18s hadoop-common in the patch passed.
-1 ❌ unit 63m 27s hadoop-hdfs in the patch passed.
-1 ❌ asflicense 0m 53s The patch generated 6 ASF License warnings.
208m 51s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.TestNNHandlesBlockReportPerStorage
hadoop.hdfs.TestDecommissionWithBackoffMonitor
hadoop.hdfs.TestPread
hadoop.hdfs.server.datanode.TestReadOnlySharedStorage
hadoop.hdfs.server.datanode.TestBlockScanner
hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureToleration
hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting
hadoop.hdfs.server.datanode.TestDataNodeRollingUpgrade
hadoop.hdfs.TestDecommission
hadoop.hdfs.server.datanode.TestNNHandlesCombinedBlockReport
hadoop.hdfs.TestErasureCodeBenchmarkThroughput
hadoop.hdfs.server.datanode.TestDirectoryScanner
hadoop.hdfs.TestErasureCodingPolicies
hadoop.hdfs.TestClose
hadoop.hdfs.server.datanode.TestBlockRecovery
hadoop.hdfs.TestUnsetAndChangeDirectoryEcPolicy
hadoop.hdfs.TestReconstructStripedFileWithRandomECPolicy
hadoop.hdfs.security.TestDelegationToken
hadoop.hdfs.TestDecommissionWithStriped
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/Dockerfile
GITHUB PR #1964
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux a2722ffecb38 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 personality/hadoop.sh
git revision trunk / 3d69383
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/branch-compile-root.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/patch-compile-root.txt
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/patch-compile-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/diff-checkstyle-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 3507 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/3/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@liuml07
Copy link
Member

liuml07 commented Apr 22, 2020

Looks good to me overall. May need a clean QA run before committing.

Test failure seem unrelated, but worth another look. And we can search recent builds to see if they are also happening without this patch.

The compile issue is unrelated, reported by https://issues.apache.org/jira/browse/HADOOP-17007

findbugs warnings are unrelated.

@@ -321,6 +321,7 @@ private void initHM() {

protected void initRPC() throws IOException {
InetSocketAddress bindAddr = getRpcAddressToBindTo();
LOG.info("ZKFC RpcServer binding to " + bindAddr);
Copy link
Member

Choose a reason for hiding this comment

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

Use the logger format with {}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -125,7 +128,21 @@ static int getZkfcPort(Configuration conf) {
return conf.getInt(DFSConfigKeys.DFS_HA_ZKFC_PORT_KEY,
DFSConfigKeys.DFS_HA_ZKFC_PORT_DEFAULT);
}


/** Given a configuration get the bind host that could be used by ZKFC.
Copy link
Member

Choose a reason for hiding this comment

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

Use standard javadoc with a break line and add the param and the return.

Copy link
Member

Choose a reason for hiding this comment

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

It kind of comes from HAUtil but let's make it right here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. Added javadoc

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 0m 48s Maven dependency ordering for branch
+1 💚 mvninstall 19m 5s trunk passed
-1 ❌ compile 16m 55s root in trunk failed.
+1 💚 checkstyle 2m 39s trunk passed
+1 💚 mvnsite 2m 55s trunk passed
+1 💚 shadedclient 20m 58s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 1m 59s trunk passed
+0 🆗 spotbugs 3m 2s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 0s hadoop-hdfs-project/hadoop-hdfs in trunk has 3 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
+1 💚 mvninstall 1m 57s the patch passed
-1 ❌ compile 16m 16s root in the patch failed.
-1 ❌ javac 16m 16s root in the patch failed.
-0 ⚠️ checkstyle 2m 38s root: The patch generated 41 new + 46 unchanged - 0 fixed = 87 total (was 46)
+1 💚 mvnsite 2m 53s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 14m 33s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 2m 2s the patch passed
+1 💚 findbugs 5m 23s the patch passed
_ Other Tests _
+1 💚 unit 9m 12s hadoop-common in the patch passed.
-1 ❌ unit 92m 36s hadoop-hdfs in the patch passed.
+1 💚 asflicense 1m 5s The patch does not generate ASF License warnings.
219m 36s
Reason Tests
Failed junit tests hadoop.hdfs.server.datanode.TestNNHandlesBlockReportPerStorage
hadoop.hdfs.server.datanode.TestBPOfferService
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/Dockerfile
GITHUB PR #1964
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 90978287cb7b 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 personality/hadoop.sh
git revision trunk / 5958af4
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/branch-compile-root.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/patch-compile-root.txt
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/patch-compile-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/diff-checkstyle-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/testReport/
Max. process+thread count 5345 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/4/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@goiri
Copy link
Member

goiri commented Apr 23, 2020

I'm a little confused with the @hadoop-yetus report... it looks like is checking old code.

@liuml07
Copy link
Member

liuml07 commented Apr 23, 2020

I'm a little confused with the @hadoop-yetus report... it looks like is checking old code.

Yes same here. CC: @aajisaka @hadoop-yetus Basically after the author updated the PR, the Yetus was still generating reports using old patch / commits.

One way to confirm is that:

  1. The new build was triggered by and generated for the recent commit
  2. The two recent commits have deleted a source code file it added in its initial commit
  3. The checkstyle is still reporting that deleted source file.

@dhirajh
Copy link
Contributor Author

dhirajh commented Apr 23, 2020

I have

I'm a little confused with the @hadoop-yetus report... it looks like is checking old code.

Yes same here. CC: @aajisaka @hadoop-yetus Basically after the author updated the PR, the Yetus was still generating reports using old patch / commits.

One way to confirm is that:

  1. The new build was triggered by and generated for the recent commit
  2. The two recent commits have deleted a source code file it added in its initial commit
  3. The checkstyle is still reporting that deleted source file.

I have just uploaded the patch diff too, in case that helps kick off a better build.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 24m 46s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ trunk Compile Tests _
+0 🆗 mvndep 0m 48s Maven dependency ordering for branch
+1 💚 mvninstall 19m 4s trunk passed
-1 ❌ compile 16m 49s root in trunk failed.
+1 💚 checkstyle 2m 39s trunk passed
+1 💚 mvnsite 2m 52s trunk passed
+1 💚 shadedclient 21m 5s branch has no errors when building and testing our client artifacts.
+1 💚 javadoc 2m 0s trunk passed
+0 🆗 spotbugs 3m 6s Used deprecated FindBugs config; considering switching to SpotBugs.
-1 ❌ findbugs 3m 4s hadoop-hdfs-project/hadoop-hdfs in trunk has 3 extant findbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 1m 58s the patch passed
-1 ❌ compile 17m 30s root in the patch failed.
-1 ❌ javac 17m 30s root in the patch failed.
-0 ⚠️ checkstyle 2m 59s root: The patch generated 40 new + 46 unchanged - 0 fixed = 86 total (was 46)
+1 💚 mvnsite 3m 4s the patch passed
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 shadedclient 15m 7s patch has no errors when building and testing our client artifacts.
+1 💚 javadoc 2m 4s the patch passed
+1 💚 findbugs 5m 43s the patch passed
_ Other Tests _
+1 💚 unit 9m 35s hadoop-common in the patch passed.
-1 ❌ unit 94m 6s hadoop-hdfs in the patch passed.
+1 💚 asflicense 1m 3s The patch does not generate ASF License warnings.
248m 26s
Reason Tests
Failed junit tests hadoop.hdfs.TestDecommissionWithBackoffMonitor
hadoop.hdfs.TestEncryptedTransfer
hadoop.hdfs.TestErasureCodingMultipleRacks
hadoop.hdfs.TestDistributedFileSystem
hadoop.hdfs.TestDecommissionWithStriped
hadoop.hdfs.server.datanode.TestDataNodeMultipleRegistrations
hadoop.hdfs.server.datanode.web.TestDatanodeHttpXFrame
Subsystem Report/Notes
Docker ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/Dockerfile
GITHUB PR #1964
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 2a2c131643a4 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 personality/hadoop.sh
git revision trunk / 30ef8d0
Default Java Private Build-1.8.0_252-8u252-b09-1~16.04-b09
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/branch-compile-root.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/branch-findbugs-hadoop-hdfs-project_hadoop-hdfs-warnings.html
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/patch-compile-root.txt
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/patch-compile-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/diff-checkstyle-root.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/testReport/
Max. process+thread count 4475 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-1964/5/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@liuml07 liuml07 merged commit 453c9c9 into apache:trunk Apr 25, 2020
asfgit pushed a commit that referenced this pull request Apr 25, 2020
…ost address (#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
asfgit pushed a commit that referenced this pull request Apr 25, 2020
…ost address (#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
asfgit pushed a commit that referenced this pull request Apr 25, 2020
…ost address (#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
asfgit pushed a commit that referenced this pull request Apr 25, 2020
…ost address (#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
asfgit pushed a commit that referenced this pull request Apr 25, 2020
…ost address (#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
@liuml07 liuml07 changed the title HDFS-15281: Make sure ZKFC uses dfs.namenode.rpc-address to bind to host address HDFS-15281. ZKFC ignores dfs.namenode.rpc-bind-host and uses dfs.namenode.rpc-address to bind to host address Apr 25, 2020
bentito pushed a commit to bentito/hadoop that referenced this pull request Dec 2, 2020
…ost address (apache#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
bentito pushed a commit to bentito/hadoop that referenced this pull request Dec 3, 2020
…ost address (apache#1964)

Contributed by Dhiraj Hegde.

Signed-off-by: Mingliang Liu <liuml07@apache.org>
Signed-off-by: Inigo Goiri <inigoiri@apache.org>
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.

4 participants