Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.6.0, 0.7.0
-
None
-
Drill cluster on nodes with Mongo Shards
Description
Query fails on a large unsharded collection in MongoDB sharded cluster with drillbits on each node with Mongo shards.
Error message:
0: jdbc:drill:se0:5181> select * from unshard limit 2;
Query failed: Failure while setting up query. Incoming endpoints 1 is greater than number of chunks 0 [cb2121f7-eb3e-48cd-8530-474ca76c598d]
Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0)
0: jdbc:drill:se0:5181> explain plan for select * from unshard limit 2;
----------------------+
text | json |
----------------------+
00-00 Screen 00-01 SelectionVectorRemover 00-02 Limit(fetch=[2]) 00-03 Scan(groupscan=[MongoGroupScan [MongoScanSpec=MongoScanSpec [dbName=review_syn, collectionName=unshard, filters=null], columns=[SchemaPath [`*`]]]]) |
{ "head" : Unknown macro: { "version" }
, Unknown macro: { "pop" }
, { "pop" : "limit", "@id" : 2, "child" : 3, "first" : 0, "last" : 2, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 625000.0 }, { "pop" : "selection-vector-remover", "@id" : 1, "child" : 2, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 625000.0 }, { "pop" : "screen", "@id" : 0, "child" : 1, "initialAllocation" : 1000000, "maxAllocation" : 10000000000, "cost" : 625000.0 } ] |
----------------------+