Skip to content

Conversation

@tlrx
Copy link
Member

@tlrx tlrx commented Dec 15, 2016

This commit adds the parsing methods fromXContent() to the ReplicationResponse.ShardInfo and ReplicationResponse.ShardInfo.Failure classes.

Note that it requires some utility methods from #22082

Copy link
Member

@javanna javanna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left minors on testing, LGTM though

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I called these methods test*ToAndFromXContent() as they effectively do one complete roundtrip: toXContent -> fromXContent -> toXContent

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you clarify in the method name the difference between this method and the one above? I they they both are random but this one may have failures while the other one can't?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the name to testShardInfoWithFailureToXContent and yes, in this case there are failures.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test***ToAndFromXContent ?

tlrx added 2 commits December 19, 2016 21:27
This commit adds the parsing fromXContent() methods to the ReplicationResponse.ShardInfo and ReplicationResponse.ShardInfo.Failure classes.
@tlrx tlrx force-pushed the add-fromxcontent-methods-to-ReplicationResponse branch from c8441ab to a24107b Compare December 19, 2016 20:36
@tlrx tlrx merged commit 290326e into elastic:master Dec 20, 2016
@tlrx tlrx deleted the add-fromxcontent-methods-to-ReplicationResponse branch December 20, 2016 08:30
tlrx added a commit that referenced this pull request Dec 20, 2016
This commit adds the parsing fromXContent() methods to the ReplicationResponse.ShardInfo and ReplicationResponse.ShardInfo.Failure classes.
@tlrx tlrx removed the review label Dec 20, 2016
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.

3 participants