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

Ensure meta SHOW queries include future points #6675

Merged
merged 4 commits into from
May 27, 2016
Merged

Conversation

e-dard
Copy link
Contributor

@e-dard e-dard commented May 19, 2016

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

Fixes #6599.

If a series only contained points in the future, then none of the SHOW queries would return anything. This was because the SHOW queries were using the default time range (up to now()) and the user is unable to specify a time clause to remedy that.

SHOW queries will now include a max time of influxql.MaxTime.

This PR also fixes the line-protocol parser to verify if the timestamp provided by the client is within the acceptable time period.

@e-dard e-dard added this to the 1.0.0 milestone May 19, 2016
@jsternberg
Copy link
Contributor

👍 looks good to me.

@e-dard e-dard force-pushed the er-future-meta branch 4 times, most recently from 6a539d7 to a239896 Compare May 24, 2016 19:06
@jwilder jwilder modified the milestones: 1.0.0 beta, 1.0.0 May 26, 2016
@e-dard e-dard modified the milestones: 1.0.0 beta, 1.0.0 May 26, 2016
If all points in a series are timestamped in the future, the SHOW
queries will not return anything from these series.

This commit changes the to time used when querying shards for the SHOW
queries to the maximum time, in order to ensure future points are
considered in the results for these queries.

Fixes #6599.
@e-dard e-dard force-pushed the er-future-meta branch 2 times, most recently from 2ef0c6c to e6f525e Compare May 26, 2016 22:32
@e-dard
Copy link
Contributor Author

e-dard commented May 27, 2016

This will also fix #6740

@joelegasse
Copy link
Contributor

LGTM

@e-dard e-dard merged commit f7c7b89 into master May 27, 2016
@e-dard e-dard deleted the er-future-meta branch May 27, 2016 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Funky behavior with big (error?) timestamps
5 participants