Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20171

Invalid "cannot use the part to traverse the element"

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.6
    • Component/s: Write Ops
    • None
    • ALL
    • Hide

      The following query on a collection with at least a few hundred documents matching the following fields causes some, but not all, records to be updated.

      db.DC_4_Vit.update({},
      	{ 
        "$rename" : { 
          "Entity.Fd.495.BeginFasiculation" : "Entity.Fd.495.FDb",
      	"Entity.Fd.495.Fasiculated" : "Entity.Fd.495.FDe",
      	"Entity.Fd.495.Thing" : "Entity.Fd.495.Er",
      	"Entity.Fd.495.PreventFasiculation" : "Entity.Fd.495.PvF",
      	"Entity.Fd.560.BeginFasiculation" : "Entity.Fd.560.FDb",
      	"Entity.Fd.560.Fasiculated" : "Entity.Fd.560.FDe",
      	"Entity.Fd.560.Thing" : "Entity.Fd.560.Er",
      	"Entity.Fd.560.PreventFasiculation" : "Entity.Fd.560.PvF",
      	"Entity.Fd.562.BeginFasiculation" : "Entity.Fd.562.FDb",
      	"Entity.Fd.562.Fasiculated" : "Entity.Fd.562.FDe",
      	"Entity.Fd.562.Thing" : "Entity.Fd.562.Er",
      	"Entity.Fd.562.PreventFasiculation" : "Entity.Fd.562.PvF",
      	"Entity.Fd.618.BeginFasiculation" : "Entity.Fd.618.FDb",
      	"Entity.Fd.618.Fasiculated" : "Entity.Fd.618.FDe",
      	"Entity.Fd.618.Thing" : "Entity.Fd.618.Er",
      	"Entity.Fd.618.PreventFasiculation" : "Entity.Fd.618.PvF",
      	"Entity.Fd.1036.BeginFasiculation" : "Entity.Fd.1036.FDb",
      	"Entity.Fd.1036.Fasiculated" : "Entity.Fd.1036.FDe",
      	"Entity.Fd.1036.Thing" : "Entity.Fd.1036.Er",
      	"Entity.Fd.1036.PreventFasiculation" : "Entity.Fd.1036.PvF",
      	"Entity.Fd.2467.BeginFasiculation" : "Entity.Fd.2467.FDb",
      	"Entity.Fd.2467.Fasiculated" : "Entity.Fd.2467.FDe",
      	"Entity.Fd.2467.Thing" : "Entity.Fd.2467.Er",
      	"Entity.Fd.2467.PreventFasiculation" : "Entity.Fd.2467.PvF",
      	"Entity.Fd.3692.BeginFasiculation" : "Entity.Fd.3692.FDb",
      	"Entity.Fd.3692.Fasiculated" : "Entity.Fd.3692.FDe",
      	"Entity.Fd.3692.Thing" : "Entity.Fd.3692.Er",
      	"Entity.Fd.3692.PreventFasiculation" : "Entity.Fd.3692.PvF",
      	"Entity.Fd.27153.BeginFasiculation" : "Entity.Fd.27153.FDb",
      	"Entity.Fd.27153.Fasiculated" : "Entity.Fd.27153.FDe",
      	"Entity.Fd.27153.Thing" : "Entity.Fd.27153.Er",
      	"Entity.Fd.27153.PreventFasiculation" : "Entity.Fd.27153.PvF",
      	"Entity.Fd.27156.BeginFasiculation" : "Entity.Fd.27156.FDb",
      	"Entity.Fd.27156.Fasiculated" : "Entity.Fd.27156.FDe",
      	"Entity.Fd.27156.Thing" : "Entity.Fd.27156.Er",
      	"Entity.Fd.27156.PreventFasiculation" : "Entity.Fd.27156.PvF",
      	"Entity.Fd.27267.BeginFasiculation" : "Entity.Fd.27267.FDb",
      	"Entity.Fd.27267.Fasiculated" : "Entity.Fd.27267.FDe",
      	"Entity.Fd.27267.Thing" : "Entity.Fd.27267.Er",
      	"Entity.Fd.27267.PreventFasiculation" : "Entity.Fd.27267.PvF",
      	"Entity.Fd.27268.BeginFasiculation" : "Entity.Fd.27268.FDb",
      	"Entity.Fd.27268.Fasiculated" : "Entity.Fd.27268.FDe",
      	"Entity.Fd.27268.Thing" : "Entity.Fd.27268.Er",
      	"Entity.Fd.27268.PreventFasiculation" : "Entity.Fd.27268.PvF",
      	"Entity.Fd.27429.BeginFasiculation" : "Entity.Fd.27429.FDb",
      	"Entity.Fd.27429.Fasiculated" : "Entity.Fd.27429.FDe",
      	"Entity.Fd.27429.Thing" : "Entity.Fd.27429.Er",
      	"Entity.Fd.27429.PreventFasiculation" : "Entity.Fd.27429.PvF",
      	"Entity.Fd.28668.BeginFasiculation" : "Entity.Fd.28668.FDb",
      	"Entity.Fd.28668.Fasiculated" : "Entity.Fd.28668.FDe",
      	"Entity.Fd.28668.Thing" : "Entity.Fd.28668.Er",
      	"Entity.Fd.28668.PreventFasiculation" : "Entity.Fd.28668.PvF",
      	"Entity.Fd.28681.BeginFasiculation" : "Entity.Fd.28681.FDb",
      	"Entity.Fd.28681.Fasiculated" : "Entity.Fd.28681.FDe",
      	"Entity.Fd.28681.Thing" : "Entity.Fd.28681.Er",
      	"Entity.Fd.28681.PreventFasiculation" : "Entity.Fd.28681.PvF",
      	"Entity.Fd.28682.BeginFasiculation" : "Entity.Fd.28682.FDb",
      	"Entity.Fd.28682.Fasiculated" : "Entity.Fd.28682.FDe",
      	"Entity.Fd.28682.Thing" : "Entity.Fd.28682.Er",
      	"Entity.Fd.28682.PreventFasiculation" : "Entity.Fd.28682.PvF",
      	"Entity.Fd.28683.BeginFasiculation" : "Entity.Fd.28683.FDb",
      	"Entity.Fd.28683.Fasiculated" : "Entity.Fd.28683.FDe",
      	"Entity.Fd.28683.Thing" : "Entity.Fd.28683.Er",
      	"Entity.Fd.28683.PreventFasiculation" : "Entity.Fd.28683.PvF",
      	"Entity.Fd.28846.BeginFasiculation" : "Entity.Fd.28846.FDb",
      	"Entity.Fd.28846.Fasiculated" : "Entity.Fd.28846.FDe",
      	"Entity.Fd.28846.Thing" : "Entity.Fd.28846.Er",
      	"Entity.Fd.28846.PreventFasiculation" : "Entity.Fd.28846.PvF",
      	"Entity.Fd.30153.BeginFasiculation" : "Entity.Fd.30153.FDb",
      	"Entity.Fd.30153.Fasiculated" : "Entity.Fd.30153.FDe",
      	"Entity.Fd.30153.Thing" : "Entity.Fd.30153.Er",
      	"Entity.Fd.30153.PreventFasiculation" : "Entity.Fd.30153.PvF",
      	"Entity.Fd.30456.BeginFasiculation" : "Entity.Fd.30456.FDb",
      	"Entity.Fd.30456.Fasiculated" : "Entity.Fd.30456.FDe",
      	"Entity.Fd.30456.Thing" : "Entity.Fd.30456.Er",
      	"Entity.Fd.30456.PreventFasiculation" : "Entity.Fd.30456.PvF",
      	"Entity.Fd.30559.BeginFasiculation" : "Entity.Fd.30559.FDb",
      	"Entity.Fd.30559.Fasiculated" : "Entity.Fd.30559.FDe",
      	"Entity.Fd.30559.Thing" : "Entity.Fd.30559.Er",
      	"Entity.Fd.30559.PreventFasiculation" : "Entity.Fd.30559.PvF",
      	"Entity.Fd.30580.BeginFasiculation" : "Entity.Fd.30580.FDb",
      	"Entity.Fd.30580.Fasiculated" : "Entity.Fd.30580.FDe",
      	"Entity.Fd.30580.Thing" : "Entity.Fd.30580.Er",
      	"Entity.Fd.30580.PreventFasiculation" : "Entity.Fd.30580.PvF" 
          } 
        },
      	{multi: true});
      
      Show
      The following query on a collection with at least a few hundred documents matching the following fields causes some, but not all, records to be updated. db.DC_4_Vit.update({}, { "$rename" : { "Entity.Fd.495.BeginFasiculation" : "Entity.Fd.495.FDb", "Entity.Fd.495.Fasiculated" : "Entity.Fd.495.FDe", "Entity.Fd.495.Thing" : "Entity.Fd.495.Er", "Entity.Fd.495.PreventFasiculation" : "Entity.Fd.495.PvF", "Entity.Fd.560.BeginFasiculation" : "Entity.Fd.560.FDb", "Entity.Fd.560.Fasiculated" : "Entity.Fd.560.FDe", "Entity.Fd.560.Thing" : "Entity.Fd.560.Er", "Entity.Fd.560.PreventFasiculation" : "Entity.Fd.560.PvF", "Entity.Fd.562.BeginFasiculation" : "Entity.Fd.562.FDb", "Entity.Fd.562.Fasiculated" : "Entity.Fd.562.FDe", "Entity.Fd.562.Thing" : "Entity.Fd.562.Er", "Entity.Fd.562.PreventFasiculation" : "Entity.Fd.562.PvF", "Entity.Fd.618.BeginFasiculation" : "Entity.Fd.618.FDb", "Entity.Fd.618.Fasiculated" : "Entity.Fd.618.FDe", "Entity.Fd.618.Thing" : "Entity.Fd.618.Er", "Entity.Fd.618.PreventFasiculation" : "Entity.Fd.618.PvF", "Entity.Fd.1036.BeginFasiculation" : "Entity.Fd.1036.FDb", "Entity.Fd.1036.Fasiculated" : "Entity.Fd.1036.FDe", "Entity.Fd.1036.Thing" : "Entity.Fd.1036.Er", "Entity.Fd.1036.PreventFasiculation" : "Entity.Fd.1036.PvF", "Entity.Fd.2467.BeginFasiculation" : "Entity.Fd.2467.FDb", "Entity.Fd.2467.Fasiculated" : "Entity.Fd.2467.FDe", "Entity.Fd.2467.Thing" : "Entity.Fd.2467.Er", "Entity.Fd.2467.PreventFasiculation" : "Entity.Fd.2467.PvF", "Entity.Fd.3692.BeginFasiculation" : "Entity.Fd.3692.FDb", "Entity.Fd.3692.Fasiculated" : "Entity.Fd.3692.FDe", "Entity.Fd.3692.Thing" : "Entity.Fd.3692.Er", "Entity.Fd.3692.PreventFasiculation" : "Entity.Fd.3692.PvF", "Entity.Fd.27153.BeginFasiculation" : "Entity.Fd.27153.FDb", "Entity.Fd.27153.Fasiculated" : "Entity.Fd.27153.FDe", "Entity.Fd.27153.Thing" : "Entity.Fd.27153.Er", "Entity.Fd.27153.PreventFasiculation" : "Entity.Fd.27153.PvF", "Entity.Fd.27156.BeginFasiculation" : "Entity.Fd.27156.FDb", "Entity.Fd.27156.Fasiculated" : "Entity.Fd.27156.FDe", "Entity.Fd.27156.Thing" : "Entity.Fd.27156.Er", "Entity.Fd.27156.PreventFasiculation" : "Entity.Fd.27156.PvF", "Entity.Fd.27267.BeginFasiculation" : "Entity.Fd.27267.FDb", "Entity.Fd.27267.Fasiculated" : "Entity.Fd.27267.FDe", "Entity.Fd.27267.Thing" : "Entity.Fd.27267.Er", "Entity.Fd.27267.PreventFasiculation" : "Entity.Fd.27267.PvF", "Entity.Fd.27268.BeginFasiculation" : "Entity.Fd.27268.FDb", "Entity.Fd.27268.Fasiculated" : "Entity.Fd.27268.FDe", "Entity.Fd.27268.Thing" : "Entity.Fd.27268.Er", "Entity.Fd.27268.PreventFasiculation" : "Entity.Fd.27268.PvF", "Entity.Fd.27429.BeginFasiculation" : "Entity.Fd.27429.FDb", "Entity.Fd.27429.Fasiculated" : "Entity.Fd.27429.FDe", "Entity.Fd.27429.Thing" : "Entity.Fd.27429.Er", "Entity.Fd.27429.PreventFasiculation" : "Entity.Fd.27429.PvF", "Entity.Fd.28668.BeginFasiculation" : "Entity.Fd.28668.FDb", "Entity.Fd.28668.Fasiculated" : "Entity.Fd.28668.FDe", "Entity.Fd.28668.Thing" : "Entity.Fd.28668.Er", "Entity.Fd.28668.PreventFasiculation" : "Entity.Fd.28668.PvF", "Entity.Fd.28681.BeginFasiculation" : "Entity.Fd.28681.FDb", "Entity.Fd.28681.Fasiculated" : "Entity.Fd.28681.FDe", "Entity.Fd.28681.Thing" : "Entity.Fd.28681.Er", "Entity.Fd.28681.PreventFasiculation" : "Entity.Fd.28681.PvF", "Entity.Fd.28682.BeginFasiculation" : "Entity.Fd.28682.FDb", "Entity.Fd.28682.Fasiculated" : "Entity.Fd.28682.FDe", "Entity.Fd.28682.Thing" : "Entity.Fd.28682.Er", "Entity.Fd.28682.PreventFasiculation" : "Entity.Fd.28682.PvF", "Entity.Fd.28683.BeginFasiculation" : "Entity.Fd.28683.FDb", "Entity.Fd.28683.Fasiculated" : "Entity.Fd.28683.FDe", "Entity.Fd.28683.Thing" : "Entity.Fd.28683.Er", "Entity.Fd.28683.PreventFasiculation" : "Entity.Fd.28683.PvF", "Entity.Fd.28846.BeginFasiculation" : "Entity.Fd.28846.FDb", "Entity.Fd.28846.Fasiculated" : "Entity.Fd.28846.FDe", "Entity.Fd.28846.Thing" : "Entity.Fd.28846.Er", "Entity.Fd.28846.PreventFasiculation" : "Entity.Fd.28846.PvF", "Entity.Fd.30153.BeginFasiculation" : "Entity.Fd.30153.FDb", "Entity.Fd.30153.Fasiculated" : "Entity.Fd.30153.FDe", "Entity.Fd.30153.Thing" : "Entity.Fd.30153.Er", "Entity.Fd.30153.PreventFasiculation" : "Entity.Fd.30153.PvF", "Entity.Fd.30456.BeginFasiculation" : "Entity.Fd.30456.FDb", "Entity.Fd.30456.Fasiculated" : "Entity.Fd.30456.FDe", "Entity.Fd.30456.Thing" : "Entity.Fd.30456.Er", "Entity.Fd.30456.PreventFasiculation" : "Entity.Fd.30456.PvF", "Entity.Fd.30559.BeginFasiculation" : "Entity.Fd.30559.FDb", "Entity.Fd.30559.Fasiculated" : "Entity.Fd.30559.FDe", "Entity.Fd.30559.Thing" : "Entity.Fd.30559.Er", "Entity.Fd.30559.PreventFasiculation" : "Entity.Fd.30559.PvF", "Entity.Fd.30580.BeginFasiculation" : "Entity.Fd.30580.FDb", "Entity.Fd.30580.Fasiculated" : "Entity.Fd.30580.FDe", "Entity.Fd.30580.Thing" : "Entity.Fd.30580.Er", "Entity.Fd.30580.PreventFasiculation" : "Entity.Fd.30580.PvF" } }, {multi: true});

      When attempting to rename fields on all documents in a collection, we're seeing a strange occurrence of this error message that only happens on collections with certain kinds of data. The error only happens when doing an update with multi: true

      It updates some of the documents, a seemingly random number. Performing a restore of the collection and rerunning the query causes the same error, but different records to be updated.

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            sallgeud Chad Kreimendahl
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: