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

Allow relative directory to be passed into -b option in tiered_abort test

    • 2
    • Storage - Ra 2022-03-07, Storage - Ra 2022-03-21

      jie.chen a few months ago in WT-8076 you added code to tiered_abort/main.c for a build directory. That test is commented out of normal testing but we had been able to run it manually on the command line. That no longer works.

      There are two issues:
      1. Just running ./test_tiered_abort will not find the extension directory. It would be good if the -b argument was not required and the program could try to figure out where it might be in the directory structure.
      2. Even giving a valid -b argument does not work. The reason is that the run_workload function does a chdir() call and the build directory code needs to adjust for that.

      If I give the pathname, executing from build for example, I get:

      $ test/csuite/tiered_abort/test_tiered_abort -b .
      Running test command: 
      Parent: timestamp in use: true
      Parent: Create 10 threads; sleep 32 seconds
      CONFIG: test_tiered_abort -h WT_TEST.tiered-abort -T 10 -t 32
      wiredtiger_open configuration: cache_size=23M,create,debug_mode=(table_logging=true,checkpoint_retention=5),eviction_updates_target=20,eviction_updates_trigger=90,log=(enabled,file_max=10M,remove=true),session_max=24,statistics=(fast),statistics_log=(wait=1,json=true),tiered_storage=(bucket=bucket,bucket_prefix=pfx,local_retention=2,name=local_store),eviction_dirty_target=20,eviction_dirty_trigger=90,transaction_sync=(enabled,method=none),extensions=(./ext/storage_sources/local_store/libwiredtiger_local_store.so=(early_load=true))
      [1644866126:182273][10535:0x7fc48e6dc440], wiredtiger_open: [WT_VERB_DEFAULT][ERROR]: __wt_dlopen, 25: dlopen(./ext/storage_sources/local_store/libwiredtiger_local_store.so): ./ext/storage_sources/local_store/libwiredtiger_local_store.so: cannot open shared object file: No such file or directory: WT_ERROR: non-specific WiredTiger error
      test_tiered_abort: FAILED: run_workload/462: wiredtiger_open(NULL, NULL, envconf, &conn): WT_ERROR: non-specific WiredTiger error
      test_tiered_abort: process aborting
      WiredTiger Error: __wt_abort, 28: aborting WiredTiger library
      test_tiered_abort: FAILED: Child process 10535 abnormally exited: Invalid argument
      test_tiered_abort: process aborting
      WiredTiger Error: __wt_abort, 28: aborting WiredTiger library
      Aborted (core dumped)
      
      $ ls ./ext/storage_sources/local_store/
      CMakeFiles  CTestTestfile.cmake  cmake_install.cmake  libwiredtiger_local_store.so
      

            Assignee:
            jie.chen@mongodb.com Jie Chen
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: