Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-47912

Intermittent failure in 'couch_set_view_34_truncate'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.2
    • 7.0.1
    • view-engine
    • Untriaged
    • 1
    • Unknown

    Description

      As seen during unit-simple-test:

      ERL_LIBS="/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src"
      ERL_FLAGS="-pa /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/../test/etap  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_set_view/test  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_view_parser  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couchdb  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/erlang-oauth  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/etap  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/lhttpc  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/mochiweb  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/ejson  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_audit  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_index_merger  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_set_view  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/CMakeFiles  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/mapreduce  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/snappy  /home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/src/couch_dcp"
      /home/couchbase/jenkins/workspace/unit-simple-test/couchdb/src/couch_set_view/test/34-truncate.t:73: Warning: variable 'HeaderBin2' is unused
      # Current time local 2021-08-12 03:19:09
      # Using etap version "0.3.4"
      1..5
      Apache CouchDB 0.0.0 (LogLevel=info) is starting.
      [info] [<0.141.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/_replicator.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/69699e02415854cf84172cc3d629a5ab"
      [info] [<0.141.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/_replicator.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/a099370d5c3ac02b8eec5adcaeff96c1"
      [info] [<0.141.0>] Database `_replicator`, design document `_design/_replicator` updated (new revision: 0-, deleted: false)
      Apache CouchDB has started. Time to relax.
      # Testing truncating a view file after compaction
      [info] [<0.118.0>] Deleting database couch_test_set_view_truncate/0
      [info] [<0.118.0>] Deleting database couch_test_set_view_truncate/1
      [info] [<0.118.0>] Deleting database couch_test_set_view_truncate/2
      [info] [<0.118.0>] Deleting database couch_test_set_view_truncate/3
      [info] [<0.118.0>] Deleting database couch_test_set_view_truncate/master
      [info] [<0.194.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/0.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/dc2b92fa8263f34769d6d671f249defc"
      [info] [<0.194.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/0.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/2b3d10a5f476ee451eb6cc2a1a412e93"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/0_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/33a0a1e53420153c2ae2c59851299240"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/0_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/eab9810d39746e7bb11133f01a89c4da"
      [info] [<0.201.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/1.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/77f9d9b5243c6c4bdb78add1ca732c51"
      [info] [<0.201.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/1.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/88383b3de9c86d07798fdaa22edcb855"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/1_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/0d25c68c1cee82a870b5b02f57fb3c3d"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/1_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/da3f4943ce57d9d3953d83d1b025a0dc"
      [info] [<0.208.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/2.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/56059370bccf82e9d8ee7b116d931969"
      [info] [<0.208.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/2.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/dff790f014b9c0b8941552c6d73480bd"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/2_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/76a188adfce673b2b7851f221f4ad2c9"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/2_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/025d7eb47b0efdd9cd0049fe5e37df6b"
      [info] [<0.215.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/3.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/0e2a9f164237e4b3fe088a3ee98a17ed"
      [info] [<0.215.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/3.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/52052ae82021e414827b1369e708ce52"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/3_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/20275c2784b390a8b469b367f6ffc23f"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/3_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/a077fb02c03c66ff2eefb13dab84fe85"
      [info] [<0.222.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/master.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/3092da4150c280af55135e5cd8ab1614"
      [info] [<0.222.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/couch_test_set_view_truncate/master.couch.1.compact" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/c7676e50ee53a32092b50932749109fd"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/master_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/3d8d82b2ec3f633a56c97caf289e1bd9"
      [info] [<0.176.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.couch_test_set_view_truncate/master_temp" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/4205fd01109da3aa4fb38e5bfa88c0e3"
      [info] [<0.222.0>] Database `couch_test_set_view_truncate/master`, design document `_design/test` updated (new revision: 0-, deleted: false)
      # Configuring view group
      [info] [<0.225.0>] Started undefined main (prod) set view group `couch_test_set_view_truncate`, group `_design/test`,  signature `d016e8c8262ad17f657517d72fef228d', view count: 1
      [info] [<0.225.0>] main set view group `_design/test`, set `couch_test_set_view_truncate` (prod), doc_fields_used
      [info] [<0.225.0>] Flow control buffer size is 20971520 bytes
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, linked PID <0.226.0> stopped normally
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, signature `d016e8c8262ad17f657517d72fef228d', configured with:
      4 partitions
      no replica support
      initial active partitions [0-3]
      initial passive partitions []
      # Populating the 4 databases with 128 documents
      [info] [<0.225.0>] Starting updater for set view `couch_test_set_view_truncate`, main (prod) group `_design/test`
      [info] [<0.240.0>] Updater for set view `couch_test_set_view_truncate`, main group `_design/test` started
      Active partitions:    [0-3]
      Passive partitions:   []
      Cleanup partitions:   []
      Replicas to transfer: []
      Pending transition:   
          active:           []
          passive:          []
          unindexable:      []
      Initial build:        true
      Compactor running:    false
      Min # changes:        128
       
      [info] [<0.246.0>] Updater reading changes from active partitions to update main set view group `_design/test` from set `couch_test_set_view_truncate`
      [info] [<0.246.0>] Updater for main set view group `_design/test`, set `couch_test_set_view_truncate` (prod), read a total of 16 changes
      [info] [<0.245.0>] Updater for set view `couch_test_set_view_truncate`, main group `_design/test`, starting btree build phase
      [info] [<0.225.0>] Deleting couch file "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/@indexes/couch_test_set_view_truncate/main_d016e8c8262ad17f657517d72fef228d.view.1" with renaming it to "/home/couchbase/jenkins/workspace/unit-simple-test/server_build/couchdb/tmp/lib/couch_test_set_view_truncate/.delete/523419bf125a15cca242910d6768e4b2"
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, updater finished
      Indexing time: 0.418 seconds
      Blocked time:  0.000 seconds
      Inserted IDs:  64
      Deleted IDs:   0
      Inserted KVs:  64
      Deleted KVs:   0
      Cleaned KVs:   0
      # seqs done:   64
       
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, initial index build of on-disk items is done, restart updater to index in-memory items in case there are any
      [info] [<0.225.0>] Starting updater for set view `couch_test_set_view_truncate`, main (prod) group `_design/test`
      [info] [<0.252.0>] Updater for set view `couch_test_set_view_truncate`, main group `_design/test` started
      Active partitions:    [0-3]
      Passive partitions:   []
      Cleanup partitions:   []
      Replicas to transfer: []
      Pending transition:   
          active:           []
          passive:          []
          unindexable:      []
      Initial build:        false
      Compactor running:    false
      Min # changes:        64
       
      [info] [<0.258.0>] Updater reading changes from active partitions to update main set view group `_design/test` from set `couch_test_set_view_truncate`
      [info] [<0.258.0>] Updater for main set view group `_design/test`, set `couch_test_set_view_truncate` (prod), read a total of 16 changes
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, updater finished
      Indexing time: 0.267 seconds
      Blocked time:  0.000 seconds
      Inserted IDs:  64
      Deleted IDs:   0
      Inserted KVs:  64
      Deleted KVs:   0
      Cleaned KVs:   0
      # seqs done:   64
       
      [info] [<0.157.0>] <ud>"127.0.0.1"</ud> -- GET <ud>"/_set_view/couch_test_set_view_truncate/_design/test/_view/test?stale=false"</ud> 200
      ok 1  - View contains data
      # Triggering compaction
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, compaction starting
      [info] [<0.225.0>] Set view `couch_test_set_view_truncate`, main (prod) group `_design/test`, linked PID <0.260.0> stopped normally
      Bail out! Compaction took to long
      escript: exception error: bad argument
        in operator  !/2
           called as etap_server
                     !
                     {<0.9.0>,diag,
                      [35,32,84,101,115,116,32,100,105,101,100,32,97,98,110,111,114,
                       109,97,108,108,121,58,32,
                       [123,
                        ["'EXIT'",44,10,
                         [32,
                          [32,[32,"  ",32,32],32,"  ",32,32],
                          32,
                          [32,"  ",32,32],
                          32,"  ",32,32],
                         [123,
                          ["badarg",44,10,
                           [32,32,
                            [32,[32,"  ",32|...],32,"  ",32|...],
                            32,
                            [32,"  ",32|...],
                            32,"  ",32|...],
                           [91,
                            [[123,["etap",44|...],125],44,10,[32|...],[...]|...],
                            93]],
                          125]],
                        125]]}
        in call from etap:msg/1 (/home/couchbase/jenkins/workspace/unit-simple-test/couchdb/src/etap/etap.erl, line 180)
      1/5 tests passed
      

      Logs: http://cv.jenkins.couchbase.com/job/unit-simple-test/33638/testReport/junit/projectroot.couchdb.src.couch_set_view/test/couchdb_couch_set_view_34_truncate/

      Attachments

        Activity

          People

            abhishek.jindal Abhishek Jindal
            drigby Dave Rigby (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty