Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-1981

Erroneous "illegal argument" response for index with value_format=i

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • WT2.7.0
    • Affects Version/s: WT2.5.3, WT2.6.1
    • Component/s: None
    • None

      When inserting a value that is more negative than -64 (e.g. -65, -66, etc) into a table with format "i", iterating or searching for that value always returns "illegal argument" instead of successful responses. This is probably a bug in the variable length encoding, since it doesn't happen with format "l". It only seems to happen when that value is the key of an index, when it is in the primary key or a value it works fine.

      See attached test case.

      It basically corrupts the database since it writes the data just fine, but any subsequent attempts to read past it will return errors.

            Assignee:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Reporter:
            grogers Greg Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: