javier-nieto-nexplore opened a new issue #2355:
URL: https://github.com/apache/drill/issues/2355
**Describe the bug**
Drill is not able to query mongodb cluster, it throws a NPE
```
2021-10-28 16:21:52,535 [1e8531df-4e21-f062-707b-b9cbb72c619e:foreman] INFO
o.a.d.e.s.mongo.MongoStoragePlugin - Created srv protocol connection to
[address=mongoclusterDNSisOK:27017, user=USERalsoOK].
2021-10-28 16:21:52,535 [1e8531df-4e21-f062-707b-b9cbb72c619e:foreman] INFO
o.a.d.e.s.mongo.MongoStoragePlugin - Number of open connections 1.
2021-10-28 16:21:53,165 [1e8531df-4e21-f062-707b-b9cbb72c619e:foreman] WARN
o.a.d.e.s.m.s.MongoSchemaFactory - Failure while getting collection names from
'config'. Command failed with error 13 (Unauthorized): 'not authorized on
config to execute command ...
2021-10-28 16:21:53,208 [1e8531df-4e21-f062-707b-b9cbb72c619e:foreman] WARN
o.a.d.e.s.m.s.MongoSchemaFactory - Failure while getting collection names from
'local'. Command failed with error 13 (Unauthorized): 'not authorized on local
to execute command ...
2021-10-28 16:21:58,711 [1e8531df-4e21-f062-707b-b9cbb72c619e:frag:1:0] INFO
o.a.d.e.w.fragment.FragmentExecutor -
1e8531df-4e21-f062-707b-b9cbb72c619e:1:0: State change requested
AWAITING_ALLOCATION --> FINISHED
2021-10-28 16:21:58,711 [1e8531df-4e21-f062-707b-b9cbb72c619e:frag:1:0] INFO
o.a.d.e.w.f.FragmentStatusReporter - 1e8531df-4e21-f062-707b-b9cbb72c619e:1:0:
State to report: FINISHED
2021-10-28 16:21:58,711 [drill-executor-6] ERROR
o.a.d.exec.server.BootStrapContext -
org.apache.drill.exec.work.WorkManager$WorkerBee$1.run() leaked an exception.
java.lang.NullPointerException: null
at
org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:347)
at
org.apache.drill.common.SelfCleaningRunnable.run(SelfCleaningRunnable.java:38)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
```
The DBs unauthorized are cluster-private stuff, these warning lines are also
as DEBUG at 1.18.0 logs but after the query is starting on the requested DB
without problems.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a mongodb cluster storage
2. Try a query
3. Check the logs
**Expected behavior**
Running the query
**Additional context**
[version] apache/drill:master-openjdk-14
[DIGEST] 55e6551a8523 (2021/10/28 5:23pm)
[OS] docker
--
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]