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

Move timeout to _msearch body in TSVB requests #26510

Merged
merged 2 commits into from
Dec 3, 2018

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented Dec 3, 2018

Summary

Fixes broken TSVB, fixes #26449

TSVB is broken due to timeout, requestTimeout and filter properties are no longer allowed on msearch header. If i understood correctly they were not used before either, but now elasticsearch will throw an error on every invalid property passed.

timeout is moved to request body (where it should be), requestTimeout is removed as it seems its a duplicate for timeout ... and ignore was probably not used before so its removed as well.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ppisljar ppisljar added review v7.0.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure v6.6.0 labels Dec 3, 2018
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

ignore: [404],
timeout: '90s',
requestTimeout: 90000,
//ignore: [404],
Copy link
Contributor

Choose a reason for hiding this comment

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

@spalger apparently there is some client side ignore parameter in some libraries to ignore the response. But I can't find any documentation for that for elasticsearch.js. Does this exist at all?

@timroes timroes changed the title fixing broken tsvb Move timeout to _msearch body in TSVB requests Dec 3, 2018
Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Code LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@azasypkin
Copy link
Member

azasypkin commented Dec 3, 2018

retest

Unable to download elasticsearch snapshot: Bad Gateway

Doesn't seem to be related to this PR

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@timroes timroes merged commit 4ddf9c8 into elastic:master Dec 3, 2018
@ppisljar ppisljar deleted the fix/tsvb branch December 3, 2018 10:38
ppisljar added a commit to ppisljar/kibana that referenced this pull request Dec 4, 2018
* fixing broken tsvb

* removing `ignore: [404]`
ppisljar added a commit to ppisljar/kibana that referenced this pull request Dec 4, 2018
* fixing broken tsvb

* removing `ignore: [404]`
markov00 added a commit to markov00/kibana that referenced this pull request Dec 5, 2018
markov00 added a commit that referenced this pull request Jan 30, 2019
* Use buildEsQuery for table, series and annotations

* Fix query test.

Using the buildEsQuery changed a bit the order of the must.bool array on the query

* Remove console.log

* Remove console.error and comment

* Fix wrong merge of PR #26510

* Fix default/empty index_pattern

When the user save the visualization without configuring
manually an index_pattern, a default empty string is used
instead of the default pattern. This leads to an empty
visualization after the refactoring done in #24832.
Now it will update the index_pattern field with the default
index pattern in visualize editor and on dashboard.

* Remove unnecessary wrapping query in an array

* Enable query bar on tsvb

* Remove unnecessary setDefaultIndexPattern

After fixing the null index pattern issue in kql
there is no need to use set the default index pattern
before rendering.

* fix(tsvb-server): Ignore query bar search on ignore_global_filters param

This commit mimic the behaviour of the ignore_global_filters currently used with lucene syntax:
if you enable the ignore_global_filter option on data or on annotations, data or annotations
are filtered out when using the filter bar and the search bar

* Disable showQueryBar
markov00 added a commit to markov00/kibana that referenced this pull request Feb 1, 2019
* Use buildEsQuery for table, series and annotations

* Fix query test.

Using the buildEsQuery changed a bit the order of the must.bool array on the query

* Remove console.log

* Remove console.error and comment

* Fix wrong merge of PR elastic#26510

* Fix default/empty index_pattern

When the user save the visualization without configuring
manually an index_pattern, a default empty string is used
instead of the default pattern. This leads to an empty
visualization after the refactoring done in elastic#24832.
Now it will update the index_pattern field with the default
index pattern in visualize editor and on dashboard.

* Remove unnecessary wrapping query in an array

* Enable query bar on tsvb

* Remove unnecessary setDefaultIndexPattern

After fixing the null index pattern issue in kql
there is no need to use set the default index pattern
before rendering.

* fix(tsvb-server): Ignore query bar search on ignore_global_filters param

This commit mimic the behaviour of the ignore_global_filters currently used with lucene syntax:
if you enable the ignore_global_filter option on data or on annotations, data or annotations
are filtered out when using the filter bar and the search bar

* Disable showQueryBar
markov00 added a commit that referenced this pull request Feb 5, 2019
* Enable KQL support for TSVB (#26006)

* Use buildEsQuery for table, series and annotations

* Fix query test.

Using the buildEsQuery changed a bit the order of the must.bool array on the query

* Remove console.log

* Remove console.error and comment

* Fix wrong merge of PR #26510

* Fix default/empty index_pattern

When the user save the visualization without configuring
manually an index_pattern, a default empty string is used
instead of the default pattern. This leads to an empty
visualization after the refactoring done in #24832.
Now it will update the index_pattern field with the default
index pattern in visualize editor and on dashboard.

* Remove unnecessary wrapping query in an array

* Enable query bar on tsvb

* Remove unnecessary setDefaultIndexPattern

After fixing the null index pattern issue in kql
there is no need to use set the default index pattern
before rendering.

* fix(tsvb-server): Ignore query bar search on ignore_global_filters param

This commit mimic the behaviour of the ignore_global_filters currently used with lucene syntax:
if you enable the ignore_global_filter option on data or on annotations, data or annotations
are filtered out when using the filter bar and the search bar

* Disable showQueryBar

* Fix non array query value on request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Visualizations Visualization editors, elastic-charts and infrastructure v6.6.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Metrics _msearch Timeouts
4 participants