[Concurrent Segment Search] Make MultiBucketConsumerService thread safe to use across slices during search #7785
Description
Is your feature request related to a problem? Please describe.
With concurrent segment search we will need to make the MultiBucketConsumer
thread safe as it will be shared across different slices of the shard segments. Ref here.
Describe the solution you'd like
Make MultiBucketConsumer
thread safe. We also need to see if the usage will change with Concurrent flow. For example: currently if both global and non global aggregations are present in a request, it keep tracks of the buckets across both of those and then reset after collection is completed for both aggregations. Given with concurrent segment search reduce is happening separately for both Aggregation types we will need to ensure that reset only happens in postProcess for concurrent model i.e. when both aggregation has completed the reduce phase.
Metadata
Assignees
Type
Projects
Status
Done