luocooong commented on a change in pull request #2442:
URL: https://github.com/apache/drill/pull/2442#discussion_r795119827
##########
File path:
contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoRecordReader.java
##########
@@ -198,7 +198,11 @@ public int next() {
if (!fields.isEmpty()) {
operations.add(Aggregates.project(fields));
}
- projection = collection.aggregate(operations);
+ if (plugin.getConfig().allowDiskUse()) {
+ projection = collection.aggregate(operations).allowDiskUse(true);
Review comment:
```suggestion
projection = collection.aggregate(operations).allowDiskUse(true);
```
##########
File path:
contrib/storage-mongo/src/main/resources/bootstrap-storage-plugins.json
##########
@@ -3,6 +3,7 @@
"mongo" : {
"type":"mongo",
"connection":"mongodb://localhost:27017/",
+ "allowDiskUse": false,
Review comment:
Is it possible that the old stored plugin objects were not able to
deserialize from the ZK (based on the distributed ZK)?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]