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

Distribute modifications properly in test_calc_modify.py

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT3.2.2, 4.3.3, 4.2.4
    • Component/s: None
    • Labels:
    • Sprint:
      Storage Engines 2020-01-27

      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:
            andrew.mcmenemy Andrew McMenemy
            Reporter:
            haribabu.kommi Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: