Skip to content

make populateUncoveredIntervals a configuration in query context#2332

Merged
nishantmonu51 merged 1 commit intoapache:masterfrom
himanshug:configurable_partial
Jan 28, 2016
Merged

make populateUncoveredIntervals a configuration in query context#2332
nishantmonu51 merged 1 commit intoapache:masterfrom
himanshug:configurable_partial

Conversation

@himanshug
Copy link
Copy Markdown
Contributor

fixes #2108

@himanshug himanshug added this to the 0.9.0 milestone Jan 25, 2016
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why not boolean?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah I see. this is a limit not a boolean. can this be uncoveredIntervalsLimit or similar?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

so that user can limit the size even if enabled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

sure, i can rename the key to uncoveredIntervalsLimit if that is more appropriate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@drcrallen renamed the property to uncoveredIntervalsLimit

@himanshug himanshug force-pushed the configurable_partial branch 2 times, most recently from 97b8f2a to ccc35af Compare January 26, 2016 03:24
@drcrallen drcrallen added the Bug label Jan 26, 2016
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

are we hitting this limit in the test ? If not can you add a test where we actually hit the limit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nishantmonu51 updated test to hit the limit as well.

@himanshug himanshug force-pushed the configurable_partial branch from ccc35af to 3719b6e Compare January 26, 2016 21:14
@himanshug
Copy link
Copy Markdown
Contributor Author

@nishantmonu51 @drcrallen all comments addressed.

BTW: i don't think this PR is "Incompatible" , "uncoveredInterval" was not part of 0.8.3 and in 0.9.0 default behavior is same as earlier.

@xvrl xvrl removed the Incompatible label Jan 26, 2016
@jaehc
Copy link
Copy Markdown
Contributor

jaehc commented Jan 27, 2016

@himanshug I am just wondering whether there is any particular reason for "uncoveredInterval" to be populated in a HTTP header in place of the HTTP body content?

@himanshug
Copy link
Copy Markdown
Contributor Author

@CHOIJAEHONG1 because it was originally intended to be for information purposes, in future, I guess we might have a separate section in the response payload for things like this. this PR is only intended to fix the bug really.

@drcrallen
Copy link
Copy Markdown
Contributor

@himanshug this changes default behavior. If people want the behavior of reporting uncovered intervals, then they need to set a new configuration option

@drcrallen
Copy link
Copy Markdown
Contributor

Prior to this patch: return uncovered intervals (or try to)

With this patch: Do not return uncovered intervals

With this patch AND uncoveredIntervalsLimit : return uncovered intervals (or try to)

@drcrallen
Copy link
Copy Markdown
Contributor

my bad on the uncovered intervals thing I thought we already had that in 8.3

@drcrallen
Copy link
Copy Markdown
Contributor

👍

1 similar comment
@nishantmonu51
Copy link
Copy Markdown
Member

👍

nishantmonu51 added a commit that referenced this pull request Jan 28, 2016
make populateUncoveredIntervals a configuration in query context
@nishantmonu51 nishantmonu51 merged commit 3880f54 into apache:master Jan 28, 2016
@himanshug himanshug deleted the configurable_partial branch February 8, 2016 16:16
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.

uncoveredIntervals can overflow query response header

5 participants