Skip to content

Conversation

@s1monw
Copy link
Contributor

@s1monw s1monw commented Jul 26, 2017

Today we expose IndexFieldDataService outside of IndexService to do maintainance
or lookup field data in different ways. Yet, we have a streamlined way to access IndexFieldData
via QueryShardContext that should encapsulate all access to it. This also ensures that we control
all other functionality like cache clearing etc.

This change also removes the recycler option from ClearIndicesCacheRequest this option is a no-op and should have been removed long ago.

Today we expose `IndexFieldDataService` outside of IndexService to do maintainance
or lookup field data in different ways. Yet, we have a streamlined way to access IndexFieldData
via `QueryShardContext` that should encapsulate all access to it. This also ensures that we control
all other functionality like cache clearing etc.

This change also removes the `recycler` option from `ClearIndicesCacheRequest` this option is a no-op
and should have been removed long ago.
private boolean requestCache = false;
private String[] fields = null;
private String[] fields = Strings.EMPTY_ARRAY;
Copy link
Contributor

Choose a reason for hiding this comment

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

that change alone makes me happy

indexFieldData.clearField(field);
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I see you did not change that logic but it confuses me a bit as it seems we always clear fileddata even when fieldDataCache is false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah we are on the same page. I will open a followup with a BWC break

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

LGTM for the code, tests failed to compile ;)

@s1monw s1monw merged commit b72c710 into elastic:master Jul 26, 2017
s1monw added a commit that referenced this pull request Jul 26, 2017
Today we expose `IndexFieldDataService` outside of IndexService to do maintenance
or lookup field data in different ways. Yet, we have a streamlined way to access IndexFieldData
via `QueryShardContext` that should encapsulate all access to it. This also ensures that we control all other functionality like cache clearing etc.

This change also removes the `recycler` option from `ClearIndicesCacheRequest` this option is a no-op and should have been removed long ago.
s1monw added a commit that referenced this pull request Jul 26, 2017
Today we expose `IndexFieldDataService` outside of IndexService to do maintenance
or lookup field data in different ways. Yet, we have a streamlined way to access IndexFieldData
via `QueryShardContext` that should encapsulate all access to it. This also ensures that we control all other functionality like cache clearing etc.

This change also removes the `recycler` option from `ClearIndicesCacheRequest` this option is a no-op and should have been removed long ago.
@lcawl lcawl removed the v6.1.0 label Dec 12, 2017
@jimczi jimczi added v7.0.0-beta1 and removed v7.0.0 labels Feb 7, 2019
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.

5 participants