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

Rest layer refactoring phase 2 + recycling in http layer #5708

Merged
merged 1 commit into from Apr 7, 2014

Conversation

kimchy
Copy link
Member

@kimchy kimchy commented Apr 7, 2014

Refactor the rest layer handlers to simplify common code paths (like handling) failures, and introduce optional (enabled for netty) rest channel bytes recycling

Refactor the rest layer handlers to simplify common code paths (like handling) failures, and introduce optional (enabled for netty) rest channel bytes recycling
@s1monw
Copy link
Contributor

s1monw commented Apr 7, 2014

This pull request is very unfortunate that it doesn't have multiple commits to show the individual steps. I am not even sure it could do that but it would have been awesome if it could have separated the handling of the errors and building responses as one commit and the recycling as another. I think we should land this quickly since it has a loooot of goodness... I will give a LGTM here and we should move it in VERY soon and let CI chew on it.

@kimchy
Copy link
Member Author

kimchy commented Apr 7, 2014

removing the recycling is simple, a few lines change

@kimchy kimchy changed the title Recycled bytes in http + rest layer refactoring phase 2 Rest layer refactoring phase 2 Apr 7, 2014
@kimchy
Copy link
Member Author

kimchy commented Apr 7, 2014

showed @s1monw the recycling part, I will push it with it, easy to disable if we need to afterwards

@kimchy kimchy merged commit 705c7e2 into elastic:master Apr 7, 2014
@kimchy kimchy changed the title Rest layer refactoring phase 2 Rest layer refactoring phase 2 + recycling in http layer Apr 7, 2014
@kimchy kimchy deleted the rest_recycled_bytes branch April 9, 2014 14:14
@clintongormley clintongormley added the :Core/Infra/REST API REST infrastructure and utilities label Jun 7, 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