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-17520. [BugFix] TestDFSAdmin.testAllDatanodesReconfig and TestDFSAdmin.testDecommissionDataNodesReconfig failed #6812

Merged
merged 1 commit into from
May 14, 2024

Conversation

ZanderXu
Copy link
Contributor

@ZanderXu ZanderXu commented May 11, 2024

HDFS-17520. [BugFix] TestDFSAdmin.testAllDatanodesReconfig and TestDFSAdmin.testDecommissionDataNodesReconfig failed.

HDFS-17506 encountered this failed UT and the error message like:

[ERROR] Tests run: 21, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 44.521 s <<< FAILURE! - in org.apache.hadoop.hdfs.tools.TestDFSAdmin
[ERROR] testAllDatanodesReconfig(org.apache.hadoop.hdfs.tools.TestDFSAdmin)  Time elapsed: 2.086 s  <<< FAILURE!
java.lang.AssertionError: 

Expecting:
 <["Reconfiguring status for node [127.0.0.1:43731]: SUCCESS: Changed property dfs.datanode.peer.stats.enabled",
    "	From: "false"",
    "	To: "true"",
    "started at Fri May 10 13:02:51 UTC 2024 and finished at Fri May 10 13:02:51 UTC 2024."]>
to contain subsequence:
 <["SUCCESS: Changed property dfs.datanode.peer.stats.enabled",
    "	From: "false"",
    "	To: "true""]>

	at org.apache.hadoop.hdfs.tools.TestDFSAdmin.testAllDatanodesReconfig(TestDFSAdmin.java:1286)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

getReconfigurationStatusUtil concurrently get reconfiguration status from multiple DNs. It may cause messages in out is wrong, such as:

Line1: Reconfiguring status for node [127.0.0.1:65229]: Reconfiguring status for node [127.0.0.1:65224]: started at Sat May 11 15:05:49 CST 2024started at Sat May 11 15:05:49 CST 2024 and finished at Sat May 11 15:05:49 CST 2024.

Line2: and finished at Sat May 11 15:05:49 CST 2024.

…SAdmin.testDecommissionDataNodesReconfig failed
@ZanderXu
Copy link
Contributor Author

@slfan1989 Master, I see you are familiar with testDecommissionDataNodesReconfig, please help me review it. Thanks

@ZanderXu ZanderXu requested a review from slfan1989 May 11, 2024 07:18
@slfan1989
Copy link
Contributor

@slfan1989 Master, I see you are familiar with testDecommissionDataNodesReconfig, please help me review it. Thanks

@ZanderXu Thank you for your contribution! I will reply later.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
_ Prechecks _
+1 💚 dupname 0m 00s No case conflicting files found.
+0 🆗 spotbugs 0m 01s spotbugs executables are not available.
+0 🆗 codespell 0m 01s codespell was not available.
+0 🆗 detsecrets 0m 01s detect-secrets was not available.
+1 💚 @author 0m 00s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 00s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 💚 mvninstall 94m 54s trunk passed
+1 💚 compile 6m 43s trunk passed
+1 💚 checkstyle 5m 06s trunk passed
+1 💚 mvnsite 6m 59s trunk passed
+1 💚 javadoc 6m 10s trunk passed
+1 💚 shadedclient 156m 39s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 💚 mvninstall 5m 00s the patch passed
+1 💚 compile 3m 44s the patch passed
+1 💚 javac 3m 44s the patch passed
+1 💚 blanks 0m 00s The patch has no blanks issues.
+1 💚 checkstyle 2m 27s the patch passed
+1 💚 mvnsite 4m 28s the patch passed
+1 💚 javadoc 4m 06s the patch passed
+1 💚 shadedclient 170m 16s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 💚 asflicense 6m 17s The patch does not generate ASF License warnings.
450m 52s
Subsystem Report/Notes
GITHUB PR #6812
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname MINGW64_NT-10.0-17763 17b2ed3cc898 3.4.10-87d57229.x86_64 2024-02-14 20:17 UTC x86_64 Msys
Build tool maven
Personality /c/hadoop/dev-support/bin/hadoop.sh
git revision trunk / 2d929bd
Default Java Azul Systems, Inc.-1.8.0_332-b09
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6812/1/testReport/
modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6812/1/console
versions git=2.45.0.windows.1
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@slfan1989
Copy link
Contributor

slfan1989 commented May 13, 2024

LGTM +1

@ZanderXu Thanks for the contribution! Let's see if there are any other comments from other partners. If there are no comments, I will merge this PR 1-2 days.

@slfan1989 slfan1989 merged commit cab0f4c into apache:trunk May 14, 2024
1 of 4 checks passed
K0K0V0K pushed a commit to K0K0V0K/hadoop that referenced this pull request May 17, 2024
…SAdmin.testDecommissionDataNodesReconfig failed (apache#6812)  Contributed by Zengqiang Xu.

Reviewed-by: Vinayakumar B <vinayakumarb@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
K0K0V0K pushed a commit to K0K0V0K/hadoop that referenced this pull request May 17, 2024
…SAdmin.testDecommissionDataNodesReconfig failed (apache#6812)  Contributed by Zengqiang Xu.

Reviewed-by: Vinayakumar B <vinayakumarb@apache.org>
Signed-off-by: Shilun Fan <slfan1989@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants