Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-7718

dtest cql_tests.py:TestCQL.cql3_insert_thrift_test fails intermittently

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.1.0
    • Component/s: Test/dtest
    • Labels:
    • Environment:

      cassandra-2.1.0 branch

      Description

      This test fails about 20-25% of the time - ran about 10 times through looping the test, and it typically fails on the 4th or 5th test.

      (master)mshuler@hana:~/git/cassandra-dtest$ ../loop_dtest.sh "cql_tests.py:TestCQL.cql3_insert_thrift_test"
      <...>
      
      ==== Run #4 ====
      nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
      cql3_insert_thrift_test (cql_tests.TestCQL) ... cluster ccm directory: /tmp/dtest-Drwunj
      [node1 ERROR] 
      [node1 ERROR] 
      FAIL
      removing ccm cluster test at: /tmp/dtest-Drwunj
      
      ======================================================================
      FAIL: cql3_insert_thrift_test (cql_tests.TestCQL)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/mshuler/git/cassandra-dtest/cql_tests.py", line 1627, in cql3_insert_thrift_test
          assert res == [ [2, 4, 200] ], res
      AssertionError: []
      
      ----------------------------------------------------------------------
      Ran 1 test in 7.192s
      

      loop_dtest.sh:

      #!/bin/bash
      if [ ${1} ]; then
          export MAX_HEAP_SIZE="1G"
          export HEAP_NEWSIZE="256M"
          export PRINT_DEBUG=true
          COUNT=0
          while true; do
              echo
              echo "==== Run #$COUNT ===="
              nosetests --nocapture --nologcapture --verbosity=3 ${1}
              if [ $? -ne 0 ]; then
                  exit 1
              fi
              ((COUNT++))
              sleep 0.5
          done
          unset MAX_HEAP_SIZE HEAP_NEWSIZE PRINT_DEBUG
      else
          echo "  ${0} needs a test to run.."
          exit 255
      fi
      

      I find no ERROR/WARN log entries from the failed test - attached node log anyway.

        Attachments

        1. node1.log
          48 kB
          Michael Shuler

          Activity

            People

            • Assignee:
              philipthompson Philip Thompson
              Reporter:
              mshuler Michael Shuler
              Authors:
              Philip Thompson
              Tester:
              Michael Shuler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: