[ https://issues.apache.org/jira/browse/CASSANDRASC-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yifan Cai updated CASSANDRASC-53: --------------------------------- Fix Version/s: 1.0 Source Control Link: https://github.com/apache/cassandra-sidecar/commit/3cbb3d19c6f043b3a20e4933e5ff7a0e3d58f0a9 Resolution: Fixed Status: Resolved (was: Ready to Commit) > [Sidecar Client] Allow unknown fields in the response > ----------------------------------------------------- > > Key: CASSANDRASC-53 > URL: https://issues.apache.org/jira/browse/CASSANDRASC-53 > Project: Sidecar for Apache Cassandra > Issue Type: Improvement > Components: Configuration > Reporter: Francisco Guerrero > Assignee: Francisco Guerrero > Priority: Normal > Labels: pull-request-available > Fix For: 1.0 > > > While testing CASSANDRASC-52 on the server side, the Sidecar client based off > of {{trunk}} failed to deserialize the JSON payload with error > {code:java} > Caused by: > o.a.c.sidecar.client.shaded.com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: > Unrecognized field "sidecar" (class > org.apache.cassandra.sidecar.common.NodeSettings), not marked as ignorable (2 > known properties: "releaseVersion", "partitioner"]) > at [Source: > (byte[])"{"releaseVersion":"4.0.9-SNAPSHOT","partitioner":"org.apache.cassandra.dht.Murmur3Partitioner","sidecar":{"version":"1.0-SNAPSHOT"}}"; > line: 1, column: 107] (through reference chain: > org.apache.cassandra.sidecar.common.NodeSettings["sidecar"]) > at > o.a.c.sidecar.client.shaded.com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) > at > o.a.c.sidecar.client.shaded.com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1132) > {code} > As we are evolving the code, we expect the API on the server side to evolve. > The deployed clients need to tolerate these new fields in the response JSON > payload to continue working correctly. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org