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

Add test case to verify complex metadata

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None

      Description

      During a recent discussion about reproducing a fsyncLock/snapshotting backup issue, below suggestions were made by Michael Cahill and Susan LoVerso:

      Right now for WiredTiger.backup there's assumption that we can fprintf the keys and values, and that they won’t contain embedded newlines (i.e., we can read back the key and value in a single line). Particularly with app_metadata, which MongoDB uses, and which is complicated for indexes, this assumption is questionable.

      It would be helpful to add a test case to test_alter03.py such as test_alter03_complex_metadata. The test should set up a table, and then set up a complex JSON metadata string, then alter the app_metadata with that JSON and verify it. An example of complex JSON strings can be found in test_jsondump02.py. Perhaps the code in there using bin_unicode and mixed_unicode can be used to test embedded special characters in the app_metadata.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-storage-engines Backlog - Storage Engines Team
            Reporter:
            luke.chen Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: