[
https://issues.apache.org/jira/browse/HDFS-8063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14486344#comment-14486344
]
Colin Patrick McCabe commented on HDFS-8063:
--------------------------------------------
Thanks for the explanation. Yes, I agree that waiting for the spans to
complete could be annoying in general. +1 for the patch.
If we later want to refactor this to use fewer MiniDFSCluster instances, we
could also consider some kind of retry loop using {{GenericTestUtils#waitFor}},
like we have in some other tests.
> Fix test failure in TestTracing
> -------------------------------
>
> Key: HDFS-8063
> URL: https://issues.apache.org/jira/browse/HDFS-8063
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: test
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
> Priority: Minor
> Attachments: HDFS-8063.001.patch, testReadTraceHooks.html
>
>
> Tests in TestTracing sometimes fails, especially on slow machine. The cause
> is that spans is possible to arrive at receiver after
> {{assertSpanNamesFound}} passed and
> {{SetSpanReceiver.SetHolder.spans.clear()}} is called for next test case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)