[
https://issues.apache.org/jira/browse/DRILL-7628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17053688#comment-17053688
]
ASF GitHub Bot commented on DRILL-7628:
---------------------------------------
vvysotskyi commented on pull request #2015: DRILL-7628: Fix Mongo tests broken
after the fix for DRILL-7547
URL: https://github.com/apache/drill/pull/2015
# [DRILL-7628](https://issues.apache.org/jira/browse/DRILL-7628): Fix Mongo
tests broken after the fix for DRILL-7547
## Description
Fixed test suite name in pom file, since all mongo tests were skipped during
tests run because of this issue. Made changes to create mongo user for tests
using a conf file. Added missed `TestMongoStoragePluginUsesCredentialsStore` to
the test suite.
## Documentation
NA
## Testing
Ran all tests.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
> Fix Mongo tests broken after the fix for DRILL-7547
> ---------------------------------------------------
>
> Key: DRILL-7628
> URL: https://issues.apache.org/jira/browse/DRILL-7628
> Project: Apache Drill
> Issue Type: Bug
> Affects Versions: 1.18.0
> Reporter: Vova Vysotskyi
> Assignee: Vova Vysotskyi
> Priority: Major
> Fix For: 1.18.0
>
>
> In changes for DRILL-7547, {{MongoTestSuit}} class was renamed to
> {{MongoTestSuite}}. This class was specified in {{pom.xml}} file as a test
> suite, so all other tests were excluded to be run using tests suite class.
> After renaming, since all tests were excluded, they stopped running.
> For now, when fixed name of the class in the pom file, almost all tests fail
> with the following errors:
> {noformat}
> [INFO] Running org.apache.drill.exec.store.mongo.TestMongoFilterPushDown
> [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.366
> s <<< FAILURE! - in org.apache.drill.exec.store.mongo.TestMongoFilterPushDown
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownIsEqual
> Time elapsed: 0.167 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 25 to line 1, column 29: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: 479d4919-ac6e-4f77-88a7-349a3f9478be ]
> at
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownIsEqual(TestMongoFilterPushDown.java:36)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 25 to line 1, column 29: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: 479d4919-ac6e-4f77-88a7-349a3f9478be ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 25 to line 1, column 29: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownGreaterThanWithSingleField
> Time elapsed: 0.017 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 25 to line 1, column 29: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: e89318a7-5911-4734-b952-bdcae33085f9 ]
> at
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownGreaterThanWithSingleField(TestMongoFilterPushDown.java:60)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 25 to line 1, column 29: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: e89318a7-5911-4734-b952-bdcae33085f9 ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 25 to line 1, column 29: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownLessThanWithSingleField
> Time elapsed: 0.019 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 25 to line 1, column 29: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: 8cbc44e5-508a-43a7-88c0-181a5197518f ]
> at
> org.apache.drill.exec.store.mongo.TestMongoFilterPushDown.testFilterPushDownLessThanWithSingleField(TestMongoFilterPushDown.java:48)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 25 to line 1, column 29: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: 8cbc44e5-508a-43a7-88c0-181a5197518f ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 25 to line 1, column 29: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [INFO] Running org.apache.drill.exec.store.mongo.TestMongoProjectPushDown
> [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed:
> 0.345 s - in org.apache.drill.exec.store.mongo.TestMongoProjectPushDown
> [INFO] Running org.apache.drill.exec.store.mongo.TestMongoQueries
> [ERROR] Tests run: 8, Failures: 0, Errors: 6, Skipped: 2, Time elapsed: 0.261
> s <<< FAILURE! - in org.apache.drill.exec.store.mongo.TestMongoQueries
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoQueries.testUnShardedDBInShardedCluster
> Time elapsed: 0.047 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 15 to line 1, column 19: Object 'donuts' not found within
> 'mongo.donuts'
> [Error Id: e993a1b8-ed30-4085-a4ce-b7f6733e82e2 ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testUnShardedDBInShardedCluster(TestMongoQueries.java:77)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 15 to line 1, column 19: Object
> 'donuts' not found within 'mongo.donuts'
> [Error Id: e993a1b8-ed30-4085-a4ce-b7f6733e82e2 ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 15 to line 1, column 19: Object 'donuts' not found within
> 'mongo.donuts': Object 'donuts' not found within 'mongo.donuts'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'donuts' not found within 'mongo.donuts'
> [ERROR] org.apache.drill.exec.store.mongo.TestMongoQueries.testResultCount
> Time elapsed: 0.022 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 27 to line 1, column 31: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: a4bf0f55-a24b-409c-8910-4b319c83b186 ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testResultCount(TestMongoQueries.java:68)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 27 to line 1, column 31: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: a4bf0f55-a24b-409c-8910-4b319c83b186 ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 27 to line 1, column 31: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [ERROR] org.apache.drill.exec.store.mongo.TestMongoQueries.testBooleanFilter
> Time elapsed: 0.017 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 27 to line 1, column 31: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: b9a88879-db5c-4573-b9a2-44eff25947e2 ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testBooleanFilter(TestMongoQueries.java:35)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 27 to line 1, column 31: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: b9a88879-db5c-4573-b9a2-44eff25947e2 ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 27 to line 1, column 31: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoQueries.testEmptyCollection Time
> elapsed: 0.017 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 15 to line 1, column 19: Object 'empty' not found within
> 'mongo.employee'
> [Error Id: 368c8fb3-668e-4906-a4c2-e84f2de323d0 ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testEmptyCollection(TestMongoQueries.java:86)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 15 to line 1, column 19: Object 'empty'
> not found within 'mongo.employee'
> [Error Id: 368c8fb3-668e-4906-a4c2-e84f2de323d0 ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 15 to line 1, column 19: Object 'empty' not found within
> 'mongo.employee': Object 'empty' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empty' not found within 'mongo.employee'
> [ERROR]
> org.apache.drill.exec.store.mongo.TestMongoQueries.testWithANDOperator Time
> elapsed: 0.018 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 27 to line 1, column 31: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: 6ef0cb24-87d5-4d7f-be75-deacafcba57b ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testWithANDOperator(TestMongoQueries.java:50)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 27 to line 1, column 31: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: 6ef0cb24-87d5-4d7f-be75-deacafcba57b ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 27 to line 1, column 31: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [ERROR] org.apache.drill.exec.store.mongo.TestMongoQueries.testWithOROperator
> Time elapsed: 0.014 s <<< ERROR!
> org.apache.drill.exec.rpc.RpcException:
> org.apache.drill.common.exceptions.UserRemoteException: VALIDATION ERROR:
> From line 1, column 27 to line 1, column 31: Object 'empinfo' not found
> within 'mongo.employee'
> [Error Id: 3e21f52f-a2ee-4a22-9549-8dc8142cf6fd ]
> at
> org.apache.drill.exec.store.mongo.TestMongoQueries.testWithOROperator(TestMongoQueries.java:59)
> Caused by: org.apache.drill.common.exceptions.UserRemoteException:
> VALIDATION ERROR: From line 1, column 27 to line 1, column 31: Object
> 'empinfo' not found within 'mongo.employee'
> [Error Id: 3e21f52f-a2ee-4a22-9549-8dc8142cf6fd ]
> Caused by: org.apache.calcite.runtime.CalciteContextException: From line 1,
> column 27 to line 1, column 31: Object 'empinfo' not found within
> 'mongo.employee': Object 'empinfo' not found within 'mongo.employee'
> Caused by: org.apache.calcite.sql.validate.SqlValidatorException: Object
> 'empinfo' not found within 'mongo.employee'
> [INFO] Running org.apache.drill.exec.store.mongo.TestMongoChunkAssignment
> [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.582
> s - in org.apache.drill.exec.store.mongo.TestMongoChunkAssignment
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]
> TestMongoFilterPushDown.testFilterPushDownGreaterThanWithSingleField:60 » Rpc
> ...
> [ERROR] TestMongoFilterPushDown.testFilterPushDownIsEqual:36 » Rpc
> org.apache.drill.co...
> [ERROR]
> TestMongoFilterPushDown.testFilterPushDownLessThanWithSingleField:48 » Rpc
> org...
> [ERROR] TestMongoQueries.testBooleanFilter:35 » Rpc
> org.apache.drill.common.exceptions...
> [ERROR] TestMongoQueries.testEmptyCollection:86 » Rpc
> org.apache.drill.common.exceptio...
> [ERROR] TestMongoQueries.testResultCount:68 » Rpc
> org.apache.drill.common.exceptions.U...
> [ERROR] TestMongoQueries.testUnShardedDBInShardedCluster:77 » Rpc
> org.apache.drill.com...
> [ERROR] TestMongoQueries.testWithANDOperator:50 » Rpc
> org.apache.drill.common.exceptio...
> [ERROR] TestMongoQueries.testWithOROperator:59 » Rpc
> org.apache.drill.common.exception...
> [INFO]
> [ERROR] Tests run: 16, Failures: 0, Errors: 9, Skipped: 3
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)