Closed hkroger closed 7 years ago
Hmm, might be related to https://issues.apache.org/jira/browse/CASSANDRA-11706.
@hkroger And you are sure that cassandra is running with -Dcassandra.custom_query_handler_class=org.apache.cassandra.cql3.CustomPayloadMirroringQueryHandler
?
Yes, it turned out to be the bug in the Cassandra 3.9. It works fine with 3.10.SNAPSHOT.
This could be fixed also in this cassandra zipkin tracing module. It was partially already done, I think but this would need to be done as well in the ZipkinTracing
class as well:
public UUID newSession(Map<String,ByteBuffer> customPayload)
{
- return newSession(TraceType.QUERY);
+ return newSession(
+ TimeUUIDType.instance.compose(ByteBuffer.wrap(UUIDGen.getTimeUUIDBytes())),
+ TraceType.QUERY,
+ customPayload);
}
This change can be seen in with
git diff cassandra-3.9..cassandra-3.X src/java/org/apache/cassandra/tracing/Tracing.java
Actually it's not completely fixed in 3.10.SNAPSHOT. I created a JIRA ticket: https://issues.apache.org/jira/browse/CASSANDRA-12835
CASSANDRA-12835 got resolved
I'm testing out the cassandra-zipkin-tracing and I have an issue with custom payload. The application sends out the trace and custom payload existence is shown by the datastax driver:
However when I added some logging as seen in the PR that I created (https://github.com/thelastpickle/cassandra-zipkin-tracing/pull/2/files), I'm getting only
I'm running Cassandra 3.9 and using prepared statements (using the object mapper).
Is it a problem with Cassandra? Cassandra driver is 3.1.1.