[ 
https://issues.apache.org/jira/browse/HDFS-17224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775162#comment-17775162
 ] 

Ayush Saxena commented on HDFS-17224:
-------------------------------------

HDFS has parallel-tests profile, which is used in jenkins to speedup tests. 
AFAIK that uses maven parallel execution: 

[https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html#parallel-test-execution]

In this doc it is mentioned:
{noformat}
The important thing to remember with the parallel option is: the concurrency 
happens within the same JVM process. That is efficient in terms of memory and 
execution time, but you may be more vulnerable towards race conditions or other 
unexpected and hard to reproduce behavior.
{noformat}
There is some more stuff below that as well, didn't read full.... some tests in 
HDFS like TestDatanodeMetrics are annotated with {{NotThreadSafe}} as well, 
will try find some reasons.

I maybe overthinking here around a test running parallel, if it is, I believe 
it should be quite rare, it can be just some test poor cleanup & maybe just a 
cleanup can fix things

> TestRollingUpgrade.testDFSAdminRollingUpgradeCommands failing intermittently
> ----------------------------------------------------------------------------
>
>                 Key: HDFS-17224
>                 URL: https://issues.apache.org/jira/browse/HDFS-17224
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: dfsadmin, test
>    Affects Versions: 3.4.0
>            Reporter: Steve Loughran
>            Priority: Major
>
> TestRollingUpgrade.testDFSAdminRollingUpgradeCommands failing because the 
> static mbean isn't null. This is inevitably related to the fact that in test 
> runs, the jvm is reused and so the mbean may be present from a previous test 
> -maybe one which didn't clean up.
> it does not fail standalone



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to