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

Masatake Iwasaki commented on HTRACE-301:
-----------------------------------------

The stack trace seemed not to point to the exact line on the cause.
{noformat}
2015-11-17T17:03:36+09:00 I: Finished closing MiniHTraced TestClientOperations
--- FAIL: TestClientOperations (0.02s)
panic: runtime error: invalid memory address or nil pointer dereference 
[recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x57140d]

goroutine 66 [running]:
testing.tRunner.func1(0xc8201ca2d0)
        /home/iwasakims/srcs/go/src/testing/testing.go:450 +0x171
org/apache/htrace/common.(*Span).ToJson(0x0, 0x0, 0x0, 0x0)
        
/home/iwasakims/srcs/htrace/htrace-htraced/go/src/org/apache/htrace/common/span.go:203
 +0xed
org/apache/htrace/common.ExpectSpansEqual(0xc8201ca2d0, 0xc8201e4780, 0x0)
        
/home/iwasakims/srcs/htrace/htrace-htraced/go/src/org/apache/htrace/common/test_util.go:73
 +0x57
org/apache/htrace/htraced.TestClientOperations(0xc8201ca2d0)
        
/home/iwasakims/srcs/htrace/htrace-htraced/go/src/org/apache/htrace/htraced/client_test.go:97
 +0xb35
testing.tRunner(0xc8201ca2d0, 0xf64d18)
        /home/iwa
sakims/srcs/go/src/testing/testing.go:456 +0x98
created by testing.RunTests
        /home/iwasakims/srcs/go/src/testing/testing.go:561 +0x86d
{noformat}


> TestClientOperations should wait for spans to be written before querying them
> -----------------------------------------------------------------------------
>
>                 Key: HTRACE-301
>                 URL: https://issues.apache.org/jira/browse/HTRACE-301
>             Project: HTrace
>          Issue Type: Bug
>          Components: htraced
>            Reporter: Masatake Iwasaki
>            Assignee: Masatake Iwasaki
>            Priority: Minor
>
> TestClientOperations intermittently fails due to missing span. According to 
> the test log, FindSpan was called before the span is written to datastore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to