wt util fails with palite error when using a disagg config with non-disagg db

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • None
    • Storage Engines
    • None
    • None

      Running the wt tool with a disagg configuration -C "disaggregated=(role="leader",page_log="palite")" on a non-disagg database results in the following error:

      [1762140624:758980][200813:0xf6dd08d96020], wt, connection: [WT_VERB_DEFAULT][ERROR]: __wt_schema_open_page_log, 414: unknown page log 'palite': Invalid argument
      [1762140624:759011][200813:0xf6dd08d96020], wt, connection: [WT_VERB_ERROR_RETURNS][ERROR]: __wt_turtle_read, 653: Error at src/meta/meta_turtle.c:653: "WT_NOTFOUND" failed: WT_NOTFOUND: item not found
      [1762140624:759021][200813:0xf6dd08d96020], wt, connection: [WT_VERB_ERROR_RETURNS][ERROR]: __wt_btcur_next, 957: Error at src/btree/bt_curnext.c:957: "WT_NOTFOUND" failed: WT_NOTFOUND: item not found
      [1762140624:759028][200813:0xf6dd08d96020], wt, connection: [WT_VERB_ERROR_RETURNS][ERROR]: __curfile_next, 186: Error at src/cursor/cur_file.c:186: "ret" failed: WT_NOTFOUND: item not found
      [1762140624:759036][200813:0xf6dd08d96020], wt, connection: [WT_VERB_ERROR_RETURNS][ERROR]: __wt_schema_open_page_log, 414: Error at src/schema/schema_open.c:414: "EINVAL" failed: Invalid argument
      [1762140624:759044][200813:0xf6dd08d96020], wt, connection: [WT_VERB_ERROR_RETURNS][ERROR]: __wti_disagg_conn_config, 1284: Error at src/conn/conn_layered.c:1284: "__wt_schema_open_page_log(session, &cval, &npage_log)" failed: Invalid argument
      wt: Invalid argument 

      Reproducer:

      ubuntu in ~/wiredtiger/build
      $ pytest hs02 -p 
      
      ubuntu in ~/wiredtiger/build
      $ ./wt -C "disaggregated=(role="leader",page_log="palite")" -h WT_TEST/test_hs02.0 verify

      Note that when generating the db, if we run the test with the disagg hook (pytest hs02 -p --hook disagg) or run a test with disagg_storages we will not encounter this problem.

      Definition of done:

      • wt util detects incompatibility with disagg configuration and non-disagg db and generates a warning error.
      • create a test to ensure this works as expected (self.runWt

            Assignee:
            [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            Mariam Mojid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: