Skip to content

[Backport] SegmentMetadataQuery: Fix default interval handling.#5603

Merged
fjy merged 1 commit intoapache:0.12.0from
gianm:backport-5489-to-0.12.0
Apr 10, 2018
Merged

[Backport] SegmentMetadataQuery: Fix default interval handling.#5603
fjy merged 1 commit intoapache:0.12.0from
gianm:backport-5489-to-0.12.0

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 9, 2018

Backport of #5489 to 0.12.0.

* SegmentMetadataQuery: Fix default interval handling.

PR apache#4131 introduced a new copy builder for segmentMetadata that did
not retain the value of usingDefaultInterval. This led to it being
dropped and the default-interval handling not working as expected.
Instead of using the default 1 week history when intervals are not
provided, the segmentMetadata query would query _all_ segments,
incurring an unexpected performance hit.

This patch fixes the bug and adds a test for the copy builder.

* Intervals
@gianm gianm added the Backport label Apr 9, 2018
@gianm gianm added this to the 0.12.1 milestone Apr 9, 2018
@fjy fjy merged commit a35fe63 into apache:0.12.0 Apr 10, 2018
@gianm gianm deleted the backport-5489-to-0.12.0 branch September 23, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants