shell bulk api passes wrong flags when performing legacy inserts

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Server Tooling & Methods
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      https://github.com/mongodb/mongo/blob/r3.3.2/src/mongo/shell/bulk_api.js#L883

      It passes ordered as a bool, but the argument is an int32 flags field with 1 defined bit for continueOnError. This means it is always setting the bit to the opposite of what it should be. It probably doesn't have any effect today since the bulk api never does legacy inserts with more than one object to insert, but it could if we ever did.

            Assignee:
            Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: