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

When entering a decimal value too big for Decimal128, the current error message could be more helpful

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.4.0-rc0
    • Component/s: Usability
    • None
    • Storage Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      While doing some lightweight testing of early 3.4 new features during the MongoDB Bug Hunt Meetup, I deliberately passed in increasingly large decimal numbers.

      I was attempting to test:

      • Approximate max number of significant digits using new decimal feature
      • Appropriate error when number too large
      • Quality of error message

      Decimal number were correctly saved until my number was too large and an error message appeared. This error message was, "Error: Input out of range of Decimal128 value (inexact)."

      This error message makes it clear what the problem was. However, it could be more helpful. To figure out how many significant digits (34) are allowed in the Decimal128, I tried looking it up online and talking to a MongoDB engineer who was present. Including this information and/or the valid range in the error message would be very helpful.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            emaj4mongo Edward M. Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: