Improve error handling in MongoR perf trace reader

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When reading a perf file (generated during a replay by mongor), the parser should be robust to malformed/empty files.

      Specifically when parsing an empty file, failure to read enough bytes for the first field should be identified, rather than using an uninitialized field as a size, leading to bad allocs.

      These are still exceptional cases, but should be identified and appropriate exceptions thrown.

      Currently this is test-only functionality, no production use of mongor is affected.

            Assignee:
            James Harrison
            Reporter:
            James Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: