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

filemd5 command hides execution error in some cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 3.1.7
    • Fix Version/s: None
    • Component/s: GridFS
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      1. Import a large file with mongofiles.
      2. Drop the

      { files_id: 1, n: 1 }

      index.
      3. Create a

      { files_id: 1 }

      index. This will make the planner select this and not fail because table scan is not allowed in filemd5.
      4. Call filemd5 on the file.

      Show
      1. Import a large file with mongofiles. 2. Drop the { files_id: 1, n: 1 } index. 3. Create a { files_id: 1 } index. This will make the planner select this and not fail because table scan is not allowed in filemd5. 4. Call filemd5 on the file.

      Description

      When filemd5 command exceeds the sort memory limit, it does not report the error but instead return a result as if the file was empty.

      A modified version of the existing gridfs.js is attached.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-query Backlog - Query Team
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: