Bulk/batch write stats may overflow

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Disclaimer: Found by a coding agent. I have checked the relevant code myself but did not reproduce the overflows in practice.

      There are several instances where the bulk/batch writes use too narrow integer types for statistics (namely int instead of eg. (u)int64_t).

      For large collections, this may overflow, rendering the statistics unreliable.

      Pointers:
      write_batch_response_processor.cpp
      bulk_write_exec.h
      bulk_write_reply_info.h
      bulk_write.idl

            Assignee:
            Unassigned
            Reporter:
            Kartal Kaan Bozdogan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: