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

Remove ASSERT from EphTombstoneTest.ConcurrentPurge

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • couchbase-bucket
    • Untriaged
    • 1
    • Yes

    Description

      An ASSERT was added to EphTombstoneTest.ConcurrentPurge to remove a compiler warning for a used variable purged. This was incorrect to add as purged is not guaranteed to be > 0, as the test isn't testing if we purge items just that we're thread safe. So to fix the test failing and the compiler warning, remove the variable and ASSERT_GT().

      Error signature

      Failure of GoogleTest 'EphTombstoneTest.ConcurrentPurge':
       
      <pre>
      [ RUN      ] EphTombstoneTest.ConcurrentPurge
      ../kv_engine/engines/ep/tests/module_tests/ephemeral_vb_test.cc(827): error: Expected: (purged) > (0), actual: 0 vs 0
      [  FAILED  ] EphTombstoneTest.ConcurrentPurge (X ms)
      EphTombstoneTest.ConcurrentPurge
      </pre>
      

      Details
      10 instances of this failure (23.3% of sampled failures):

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            richard.demellow Richard deMellow
            richard.demellow Richard deMellow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty