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

Unexpected output in test suite: test_reconfig.test_reconfig_verbose

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.6.6
    • Affects Version/s: None
    • Component/s: None
    • None

      When running the whole test suite on my macbook, I consistently see:

      Unable to find source-code formatter for language: code. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      test_reconfig.test_reconfig.test_reconfig_verbose ... ERROR: stdout.txt unexpected standard output, contains:
      "test_reconfig.test_reconfig.test_reconfig_verbose: : signal log archiving server cond (0x108d55d10)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: writelock btree handle (0x1048eb8c0)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: destroy btree overflow lock (0x108d483e0)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: unlock btree handle (0x1048eb8c0)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: destroy btree handle (0x1048eb8c0)
      test_reconfig.test_reconfig.test_reconfig_verbose: , archive-server: signal cache eviction server cond (0x108d14c00)
      "
      ERROR
      

      When I run the single test alone, I see the output, but it appears after stdout/stderr are captured, so no error is detected:

      Unable to find source-code formatter for language: code. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      $  python2 ../test/suite/run.py -v 2 test_reconfig
      test_reconfig.test_reconfig.test_reconfig_shared_cache ... ok
      test_reconfig.test_reconfig.test_reconfig_statistics ... ok
      test_reconfig.test_reconfig.test_reconfig_verbose ... ok
      
      ----------------------------------------------------------------------
      Ran 3 tests in 0.019s
      
      OK
      test_reconfig.test_reconfig.test_reconfig_verbose: : signal log archiving server cond (0x1003f9020)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: writelock btree handle (0x101634110)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: destroy btree overflow lock (0x1003db5d0)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: unlock btree handle (0x101634110)
      test_reconfig.test_reconfig.test_reconfig_verbose: , file:WiredTiger.wt, archive-server: mutex: rwlock: destroy btree handle (0x101634110)
      test_reconfig.test_reconfig.test_reconfig_verbose: , archive-server: signal cache eviction server cond (0x1016355d0)
      $ 
      

      The test turns on [verbose=mutex]. It's possible that thread output may not be flushed synchronously when the thread ends, creating a timing problem that foils testing.

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            donald.anderson@mongodb.com Donald Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: