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

check timestamps when aggregating #158

Merged
merged 5 commits into from
Apr 4, 2020
Merged

Conversation

tyrasd
Copy link
Member

@tyrasd tyrasd commented Apr 12, 2019

If the aggregateByTimestamps(callback) function returns timestamps outside of the query's time range, an explicit exception will now be thrown.

Before this case was not checked and did in some cases to hard to debug NullPointerExceptions in various places (e.g. in OSHDBCombinedIndex.compareTo, or potentially even inconsistent results.

if outside of query's timestamps range -> throw exception
…ByTimestamp

i.e. when the indexer returns timestamp outside query time range
@tyrasd tyrasd added the code quality Related to our standards for 'good' code label Apr 12, 2019
@tyrasd tyrasd added the waiting for review This pull request needs a code review label Feb 26, 2020
Copy link
Member

@rtroilo rtroilo left a comment

Choose a reason for hiding this comment

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

thank you, good work 👍

@tyrasd tyrasd removed the waiting for review This pull request needs a code review label Apr 4, 2020
@tyrasd tyrasd merged commit 3b46a13 into master Apr 4, 2020
@tyrasd tyrasd deleted the fix-robust-aggregateByTimestamp branch April 4, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Related to our standards for 'good' code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants