[
https://issues.apache.org/jira/browse/HTRACE-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14305877#comment-14305877
]
Colin Patrick McCabe commented on HTRACE-103:
---------------------------------------------
I bet this was caused by my HTRACE-101 change, which adds testing for "bad"
client cases. Bad clients are... well... bad. :) And they screw up the
thread-local state.
I'll have to think about the best way to fix this... I wanted to avoid adding a
public "reset state" API because I think clients might abuse it. But we do
need some way of cleaning up after these tests.
> testHtrace and testParamterizedSampler fails
> --------------------------------------------
>
> Key: HTRACE-103
> URL: https://issues.apache.org/jira/browse/HTRACE-103
> Project: HTrace
> Issue Type: Bug
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
>
> {noformat}
> testHtrace(org.apache.htrace.TestHTrace) Time elapsed: 6.085 sec <<<
> FAILURE!
> java.lang.AssertionError: Trace tree must have roots
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.apache.htrace.TestHTrace.testHtrace(TestHTrace.java:81)
> testParamterizedSampler(org.apache.htrace.TestSampler) Time elapsed: 0.001
> sec <<< FAILURE!
> java.lang.AssertionError: expected null, but
> was:<{"i":"b26e533db550abdd","s":"91d90044ecab5eb8","b":1423065328326,"e":0,"d":"test","r":"jar","p":["73e962f3b7140c54"]}>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotNull(Assert.java:664)
> at org.junit.Assert.assertNull(Assert.java:646)
> at org.junit.Assert.assertNull(Assert.java:656)
> at
> org.apache.htrace.TestSampler.testParamterizedSampler(TestSampler.java:60)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)