mongorestore failure when batch size exceeds maxMessageSizeBytes

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 100.16.0
    • Affects Version/s: None
    • Component/s: None
    • 3
    • Tools and Replicator
    • 0.25

      Problem Statement/Rationale

      Since using mongo tools 100.15.0, some mongorestore jobs failed with

      unable to write wire message to network: write tcp ...: write: broken pipe: connection(...) unable to write wire message to network: write tcp ...: write: broken pipe

      On server side we see

      recv(): message msgLen 48000026 is invalid. Min 16 Max: 48000000

      Steps to Reproduce

      I can't share the bump file for which this failed, but I guess using any multi Gigabytes dump with documents around several tens of Ko should reproduce it.

      Expected Results

      Restore succeeds

      Actual Results

      Restore fails.

      Additional Notes

      See proposed fix: https://github.com/mongodb/mongo-tools/pull/952

            Assignee:
            Unassigned
            Reporter:
            Benoit Daviaud
            Jian Guan, Michael McClimon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: