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

Improve large bytes request handling by detecting content composite buffer #6756

Closed
wants to merge 2 commits into from

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Jul 6, 2014

There is a special type of request that tries to not allocate another buffer when sending bytes request (used by the public cluster state action). With the new pages bytes reference support, the content can already be a composite channel buffer, take that into account when building the actual composite buffer that will be sent over the network

…uffer

There is a special type of request that tries to not allocate another buffer when sending bytes request (used by the public cluster state action). With the new pages bytes reference support, the content can already be a composite channel buffer, take that into account when building the actual composite buffer that will be sent over the network
closes elastic#6756
@@ -231,8 +231,6 @@ public boolean equals(Object o) {
Timestamp timestamp = (Timestamp) o;

if (enabled != timestamp.enabled) return false;
if (dateTimeFormatter != null ? !dateTimeFormatter.equals(timestamp.dateTimeFormatter) : timestamp.dateTimeFormatter != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems unrelated?\

Copy link
Member Author

Choose a reason for hiding this comment

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

this causes equals to break, I added a test for it

@s1monw s1monw removed the review label Jul 7, 2014
@s1monw
Copy link
Contributor

s1monw commented Jul 7, 2014

left some comments

@kimchy kimchy added the review label Jul 7, 2014
@s1monw s1monw removed the review label Jul 8, 2014
@s1monw
Copy link
Contributor

s1monw commented Jul 8, 2014

replied to your answers

@kimchy
Copy link
Member Author

kimchy commented Jul 8, 2014

@s1monw cool, applies the changes. The change in MappingMetaData is needed because equals on MappingMetaData#Timestamp was broken, which I added a test for

@kimchy kimchy added the review label Jul 9, 2014
@s1monw
Copy link
Contributor

s1monw commented Jul 9, 2014

LGTM

@s1monw s1monw removed the review label Jul 9, 2014
@kimchy kimchy closed this in 3e202b4 Jul 9, 2014
kimchy added a commit that referenced this pull request Jul 9, 2014
…uffer

There is a special type of request that tries to not allocate another buffer when sending bytes request (used by the public cluster state action). With the new pages bytes reference support, the content can already be a composite channel buffer, take that into account when building the actual composite buffer that will be sent over the network
closes #6756
@clintongormley clintongormley changed the title Improve large bytes request handling by detecting content composite buff... Internal: Improve large bytes request handling by detecting content composite buffer Jul 16, 2014
@kimchy kimchy deleted the improve_composite_bytes_request branch August 18, 2014 22:15
@clintongormley clintongormley added the :Distributed/Network Http and internode communication implementations label Jun 7, 2015
@clintongormley clintongormley changed the title Internal: Improve large bytes request handling by detecting content composite buffer Improve large bytes request handling by detecting content composite buffer Jun 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed/Network Http and internode communication implementations >enhancement v1.3.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants