Skip to content
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

Merged
merged 2 commits into from Oct 6, 2015

Conversation

tbak
Copy link

@tbak tbak commented Oct 6, 2015

No description provided.

@cloudbees-pull-request-builder

NetflixOSS » eureka » eureka-pull-requests #479 SUCCESS
This pull request looks good

};

// In replication channel we use JSON only
List<CodecWrapper> jsonCodes = Arrays.asList(
Copy link
Contributor

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)?

Copy link
Author

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.

Copy link
Contributor

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.

@cloudbees-pull-request-builder

NetflixOSS » eureka » eureka-pull-requests #480 SUCCESS
This pull request looks good

@qiangdavidliu
Copy link
Contributor

Ship it.

tbak pushed a commit that referenced this pull request Oct 6, 2015
1.x Fix batch request/response encoding for the new Jackson codec.
@tbak tbak merged commit 86e4062 into Netflix:master Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants