We will get different result from realtime task with a same query.
our scenario as follows:
- druid version is 0.9.2
- we have a tranqulity task with
task.partitions=2andtask.replicants=1, then there are 2 peon tasks running in middlemanager.- i query from broker two times, and have a different result.
i think broker send this query to different peons 2 times.
queryableDruidServer = segment.lhs.pick(); only pick one server by random strategy or connectionCount strategy ,but this query should request the 2 peon tasks in middlemanager.
Can you share the query and the results you are getting ? It is quite possible that between the two queries tranquility might have sent more events and hence the results are different.
@nishantmonu51 thanks for your reply.
- I have a simple query which is
select * from datasource where A='a', and the query result should be only one.- First time , i do it then this request redirect to peon task1 and have a result with null.
- Second, i do it again,then this request redirect to peon task2 and have a right result.
What i mean is that this query should redirect to peon task1 and peon task2.
@nishantmonu51 thanks, we have solved it, it's our fault, because linear shardSpec lead to druid can't merge segment automatically, so we modify this to none shardSpec in tranquility, then broker use SingleElementPartitionChunk to build timeline rather than LinearPartitionChunk.