-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Use of field capabilities API can print warnings related to _uid field #30625
Comments
What version of Elasticsearch is this? Please fill out the template when posting an issue. |
Pinging @elastic/es-search-aggs |
I do confirm that this issue is reproducible on ES & Kibana versions 6.2.4. |
If I run a
|
@Constantin07 Thanks for the heads up. We are aware of this and to give you some context, the Keep an eye on this issue as it should be the fix for that as well. |
A deprecation warning is printed when creating the fieldddata builder for the `_uid` field. This change moves the deprecation logging to the building of the fielddata since otherwise APIs like `_field_caps` can emit deprecation warning when they just test the capabilities of the `_uid` field. Closes #30625
Thanks for reporting @gmoskovicz @tomcallahan |
A deprecation warning is printed when creating the fieldddata builder for the `_uid` field. This change moves the deprecation logging to the building of the fielddata since otherwise APIs like `_field_caps` can emit deprecation warning when they just test the capabilities of the `_uid` field. Closes #30625
Elasticsearch version (
bin/elasticsearch --version
): 6.2.0 and 6.2.1Plugins installed: [ x-pack ]
JVM version (
java -version
): AnyOS version (
uname -a
if on a Unix-like system): AnyDescription of the problem including expected versus actual behavior:
To be able to use the field capabilities without warnings.
Steps to reproduce:
In certain cases, Kibana will trigger warnings in the elasticsearch log through its use of the Field Capabilities API. This happens in particular any time an index pattern is added or refreshed in Kibana. Kibana makes this API call in particular:
[1] Run the following command
[2] Which will yield the following warnings in the log:
This is because in MappedFieldType.java we call fielddataBuilder() to determine whether or not the field can be aggregated on:
This is likely spewing warnings for a bunch of customers. Kudos to @gmoskovicz for hunting this down.
The text was updated successfully, but these errors were encountered: