Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
Engineering Ticket Description:
Currently mongodrdl exits with an error when it encounters a read-only view in MongoDB 3.4:
$ ./drdl --verbose=5 -d viewtest -c view1
|
2016-09-13T17:05:43.530-0400 Exporting tables for "viewtest.view1".
|
2016-09-13T17:05:43.532-0400 Including sample: [{_id 1} {x str}]
|
2016-09-13T17:05:43.532-0400 Including sample: [{_id 2} {x str2}]
|
2016-09-13T17:05:43.532-0400 Failed: Namespace viewtest.view1 is a view, not a collection
|
This is likely occurring when mongodrdl attempts to load the indexes for the view. You can see in the shell that MongoDB treats that as an error:
> db.view1.getIndexes()
|
2016-09-13T17:24:19.518-0400 E QUERY [thread1] Error: listIndexes failed: {
|
"ok" : 0,
|
"errmsg" : "Namespace viewtest.view1 is a view, not a collection",
|
"code" : 166
|
}
|