Skip to content

Travis build failed in KafkaZipkinTracerTest.whenKafkaIsDown #82

Open
@andystanton

Description

@andystanton

Issue Description

The Travis build for #80 failed on the test KafkaZipkinTracerTest.whenKafkaIsDown: https://travis-ci.org/github/openzipkin/zipkin-finagle/builds/659274432.

However, the PR did not change any Kafka code or dependencies and the build passed when it was run a second time, so it's possible this is an unreliable test. The error message is:

[INFO] Running zipkin2.finagle.kafka.KafkaZipkinTracerTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 s - in zipkin2.finagle.kafka.KafkaZipkinTracerTest
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   KafkaZipkinTracerIntegrationTest.whenKafkaIsDown:98 
Expecting:
  <{WrappedArray(span_bytes)=185L, List(messages_dropped, java.lang.IllegalStateException)=1L, WrappedArray(spans)=1L, WrappedArray(spans_dropped)=1L, WrappedArray(message_bytes)=187L, WrappedArray(messages)=1L, List(messages_dropped)=2L, List(messages_dropped, org.apache.kafka.common.errors.TimeoutException)=1L}>
to contain only:
  <[MapEntry[key=Buffer(spans), value=1L],
    MapEntry[key=Buffer(span_bytes), value=185L],
    MapEntry[key=Buffer(spans_dropped), value=1L],
    MapEntry[key=Buffer(messages), value=1L],
    MapEntry[key=Buffer(message_bytes), value=187L],
    MapEntry[key=Buffer(messages_dropped), value=1L],
    MapEntry[key=Buffer(messages_dropped, org.apache.kafka.common.errors.TimeoutException), value=1L]]>
elements not found:
  <[MapEntry[key=Buffer(messages_dropped), value=1L]]>
and elements not expected:
  <[MapEntry[key=List(messages_dropped, java.lang.IllegalStateException), value=1L],
    MapEntry[key=List(messages_dropped), value=2L]]>

The kafka module failed to build before the http module started, so it's unlikely that some state teardown was missed in the new code:

[INFO] ------------------------------------------------------------------------
2653[INFO] Reactor Summary for Zipkin Finagle (Parent) 2.1.6-SNAPSHOT:
2654[INFO] 
2655[INFO] Zipkin Finagle (Parent) ............................ SUCCESS [  4.159 s]
2656[INFO] Zipkin Finagle: Core ............................... SUCCESS [  8.622 s]
2657[INFO] Zipkin Finagle: Kafka .............................. FAILURE [ 32.253 s]
2658[INFO] Zipkin Finagle: Http ............................... SKIPPED
2659[INFO] Zipkin Finagle: Scribe ............................. SKIPPED

Steps to recreate

The steps to recreate the issue are to run the build via Maven as per the Travis configuration:

./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Dlicense.skip=true

However, I ran this on a loop locally and did not see the same issue after tens of runs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions