[
https://issues.apache.org/jira/browse/HBASE-29270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128994#comment-18128994
]
mazhengxuan commented on HBASE-29270:
-------------------------------------
PR: [https://github.com/apache/hbase/pull/8793]
The focused test passed three consecutive runs, and all 11 tests in
TestReplicationSource passed locally. The version-file conflict no longer
appears, and logs confirm shutdown of both mini clusters.
> TestReplicationSource.testServerShutdownRecoveredQueue fails trying to start
> a new cluster on top of an old one
> ---------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-29270
> URL: https://issues.apache.org/jira/browse/HBASE-29270
> Project: HBase
> Issue Type: Task
> Components: test
> Reporter: Nick Dimiduk
> Assignee: mazhengxuan
> Priority: Major
> Labels: pull-request-available
>
> Randomly clicking through reports of failing tests on backport PRs, I noticed
> this one. The test looks like it's not waiting for a previous mini-cluster to
> fully terminate before starting the next. This log catches the problem in the
> act because the new cluster is unable to write the hbase.version fil.
> {noformat}
> 2025-04-22T16:21:44,742 WARN [IPC Server handler 3 on default port 41961 {}]
> namenode.FSDirRenameOp(187): DIR* FSDirectory.unprotectedRenameTo: failed to
> rename
> /user/jenkins/test-data/741c35e0-5585-d427-16df-63a3a9043b44/.tmp/hbase.version
> to
> /user/jenkins/test-data/741c35e0-5585-d427-16df-63a3a9043b44/hbase.version
> because destination exists
> 2025-04-22T16:21:44,743 DEBUG [Time-limited test {}] util.FSUtils(494):
> Unable to create version file at
> hdfs://localhost:41961/user/jenkins/test-data/741c35e0-5585-d427-16df-63a3a9043b44,
> retrying
> java.io.IOException: Unable to move temp version file to
> hdfs://localhost:41961/user/jenkins/test-data/741c35e0-5585-d427-16df-63a3a9043b44/hbase.version
> at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:477)
> ~[classes/:?]
> at org.apache.hadoop.hbase.util.FSUtils.setVersion(FSUtils.java:435)
> ~[classes/:?]
> at
> org.apache.hadoop.hbase.HBaseTestingUtility.createRootDir(HBaseTestingUtility.java:1429)
> ~[test-classes/:?]
> at
> org.apache.hadoop.hbase.HBaseTestingUtility.startMiniHBaseCluster(HBaseTestingUtility.java:1165)
> ~[test-classes/:?]
> at
> org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1152)
> ~[test-classes/:?]
> at
> org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:1106)
> ~[test-classes/:?]
> at
> org.apache.hadoop.hbase.replication.regionserver.TestReplicationSource.testServerShutdownRecoveredQueue(TestReplicationSource.java:318)
> ~[test-classes/:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:?]
> at
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> ~[?:?]
> at
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)