New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.x Fix batch request/response encoding for the new Jackson codec. #674
Conversation
NetflixOSS » eureka » eureka-pull-requests #479 SUCCESS |
}; | ||
|
||
// In replication channel we use JSON only | ||
List<CodecWrapper> jsonCodes = Arrays.asList( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the reverse (encoded with JacksonJson and decoded with Legacy)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test covers all combinations:
Encoding ReplicationList using {JacksonJson,JacksonJson}
Encoding ReplicationList using {JacksonJson,LegacyJacksonJson}
Encoding ReplicationList using {LegacyJacksonJson,JacksonJson}
Encoding ReplicationList using {LegacyJacksonJson,LegacyJacksonJson}
Encoding ReplicationListResponse using {JacksonJson,JacksonJson}
Encoding ReplicationListResponse using {JacksonJson,LegacyJacksonJson}
Encoding ReplicationListResponse using {LegacyJacksonJson,JacksonJson}
Encoding ReplicationListResponse using {LegacyJacksonJson,LegacyJacksonJson}
On Tue, Oct 6, 2015 at 2:50 PM, David Liu notifications@github.com wrote:
In
eureka-client/src/test/java/com/netflix/discovery/converters/EurekaCodecCompatibilityTest.java
#674 (comment):
Action.Register
));
final ReplicationList replicationList = new ReplicationList(replicationInstances);
Action2 codingAction = new Action2() {
@Override
public void call(EncoderWrapper encodingCodec, DecoderWrapper decodingCodec) throws IOException {
String encodedString = encodingCodec.encode(replicationList);
ReplicationList decodedValue = decodingCodec.decode(encodedString, ReplicationList.class);
assertThat(decodedValue.getReplicationList().size(), is(equalTo(1)));
}
};
// In replication channel we use JSON only
List<CodecWrapper> jsonCodes = Arrays.asList(
what about the reverse (encoded with JacksonJson and decoded with Legacy)?
—
Reply to this email directly or view it on GitHub
https://github.com/Netflix/eureka/pull/674/files#r41327448.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh yes, thanks. I misread.
NetflixOSS » eureka » eureka-pull-requests #480 SUCCESS |
Ship it. |
1.x Fix batch request/response encoding for the new Jackson codec.
No description provided.