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

Make aggregations CacheRecycler-free. #5419

Closed

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Mar 13, 2014

Aggregations were still using CacheRecycler on the reduce phase. They are now
using page-based recycling for both the aggregation phase and the reduce phase.

Close #4929

Aggregations were still using CacheRecycler on the reduce phase. They are now
using page-based recycling for both the aggregation phase and the reduce phase.

Close elastic#4929
/**
* Base implementation for a hash table that recycles arrays and grows in-place.
*/
abstract class AbstractHashTable implements Releasable {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe rename this to AbstractReleasableHash ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't do that - it already is a Releasable so we don't need to put it in the name

@uboness
Copy link
Contributor

uboness commented Mar 13, 2014

Agree, in this case it doesn't really embodies the purpose of this class... Maybe

@uboness uboness closed this Mar 13, 2014
@uboness
Copy link
Contributor

uboness commented Mar 13, 2014

Oops

@uboness uboness reopened this Mar 13, 2014
@uboness
Copy link
Contributor

uboness commented Mar 13, 2014

As I was saying.... Maybe AbstractPagedHash? I just want to move it away as far as possible from java collections names

@jpountz
Copy link
Contributor Author

jpountz commented Mar 13, 2014

@uboness just added a commit following your recommendation

@kimchy
Copy link
Member

kimchy commented Mar 13, 2014

wonderful!

@uboness
Copy link
Contributor

uboness commented Mar 13, 2014

LGTM! +1

@jpountz jpountz closed this Mar 13, 2014
@jpountz jpountz deleted the enhancement/aggs-cacherecycler-free branch March 13, 2014 15:54
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.

Move Aggregations reduce phase to use Paged recycler enabled structures
5 participants