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

In fixed bitset service fix order where the warmer listener is added. #8168

Conversation

martijnvg
Copy link
Member

Add warmer listener only when index service is set, in order to prevent possible NPE.

The IndicesWarmer gets set before the InternalIndexService gets set, which can lead to a small time window were InternalIndexService isn't set

Closes #8140

… prevent possible NPE.

The IndicesWarmer gets set before the InternalIndexService gets set, which can lead to a small time window were InternalIndexService isn't set
@jpountz
Copy link
Contributor

jpountz commented Oct 21, 2014

The change looks good but can you please leave a comment about it when you push since this is a bit subtle?

@jpountz jpountz removed the review label Oct 21, 2014
@martijnvg martijnvg removed the v1.5.0 label Oct 22, 2014
martijnvg added a commit to martijnvg/elasticsearch that referenced this pull request Oct 22, 2014
… prevent possible NPE.

The IndicesWarmer gets set before the InternalIndexService gets set, which can lead to a small time window were InternalIndexService isn't set

Closes elastic#8140
Closes elastic#8168
@martijnvg martijnvg closed this in 7594ccb Oct 22, 2014
martijnvg added a commit that referenced this pull request Oct 22, 2014
… prevent possible NPE.

The IndicesWarmer gets set before the InternalIndexService gets set, which can lead to a small time window were InternalIndexService isn't set

Closes #8140
Closes #8168
@clintongormley clintongormley changed the title Core: in fixed bitset service fix order where the warmer listener is added. Internal: In fixed bitset service fix order where the warmer listener is added. Nov 3, 2014
@martijnvg martijnvg deleted the bugs/fbs_cache_only_register_warmer_after_index_service_set branch May 18, 2015 23:29
@clintongormley clintongormley changed the title Internal: In fixed bitset service fix order where the warmer listener is added. In fixed bitset service fix order where the warmer listener is added. Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
… prevent possible NPE.

The IndicesWarmer gets set before the InternalIndexService gets set, which can lead to a small time window were InternalIndexService isn't set

Closes elastic#8140
Closes elastic#8168
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