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

Distribute modifications properly in test_calc_modify.py

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT10.0.0, 4.3.3, 4.2.4
    • None
    • 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

            andrew.mcmenemy@mongodb.com Andrew McMenemy
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: