Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9242

Documentation for BI-639: Support read only views

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • BI Connector
    • 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
      }
      

      Attachments

        Activity

          People

            andrew.aldridge@mongodb.com Andrew Aldridge
            emily.hall Emily Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 15 weeks, 2 days ago