Skip to content

Conversation

@nik9000
Copy link
Member

@nik9000 nik9000 commented Jan 17, 2020

I caused a serialization bug in #50873. It is kind of tricky to get:

  • Run a date_histogram aggregation
  • On a shard on 7.6
  • That shard doesn't return any results
  • The coordinating node is before 7.6

I caused a serialization bug in elastic#50873. It is kind of tricky to get:
* Run a date_histogram aggregation
* On a shard on 7.6
* That shard doesn't return any results
* The coordinating node is before 7.6
@nik9000
Copy link
Member Author

nik9000 commented Jan 17, 2020

I marked this as non-issue because we have yet to release 7.6.0.

@nik9000 nik9000 added the :Analytics/Aggregations Aggregations label Jan 17, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

@nik9000
Copy link
Member Author

nik9000 commented Jan 17, 2020

I'm targeting this at the 7.6 branch because that was where I found it. I'll drag it forward once merged.

// Important: use `rounding` here, not `shardRounding`
InternalDateHistogram.EmptyBucketInfo emptyBucketInfo = minDocCount == 0
? new InternalDateHistogram.EmptyBucketInfo(rounding, buildEmptySubAggregations(), extendedBounds)
? new InternalDateHistogram.EmptyBucketInfo(rounding.withoutOffset(), buildEmptySubAggregations(), extendedBounds)
Copy link
Member Author

Choose a reason for hiding this comment

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

InternalDateHistogram isn't really aware of offset rounding yet so this should be safe to do unconditionally.

@nik9000
Copy link
Member Author

nik9000 commented Jan 20, 2020

I'm going to revert the change that made this one so urgent in #51240.

@nik9000
Copy link
Member Author

nik9000 commented Jan 20, 2020

I'll roll this into the "redo" of #50873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants