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

test_calc_modify.py test is not properly distributing the modifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      test_calc_modify.py test is used for testing the wiredtiger_calc_modify function with a different set of document sizes and random modifications in it, but the distribution of the modifications are not spread across the document properly because of wrong offset calculation.

      offsets variable contains the offsets in the increasing order. These offset values are used to copy/delete the old data, deleting old data and accessing directly with increased offset leads to point to end of the old data directly and all the modifications are occurring directly at the end of the new data instead of spreading them.

      It is better to use the difference between the offsets while accessing the old and new value will spread the changes evenly.

        Attachments

          Activity

            People

            • Assignee:
              backlog-server-storage-engines Backlog - Storage Engines Team
              Reporter:
              haribabu.kommi Haribabu Kommi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: