Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-27360

The trace related assertions are flaky for async client tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0, 2.5.1, 3.0.0-alpha-4
    • test, tracing
    • None
    • Reviewed

    Description

      https://ci-hbase.apache.org/job/HBase-Flaky-Tests/job/master/4167/testReport/junit/org.apache.hadoop.hbase.client/TestAsyncTableScanner/testScanWrongColumnFamily_0__table_raw__scan_normal_/

      The failure message is kinda unreadable... I guess the problem is we do not wait enough time as the completion of the span can be executed concurrently with normal scan operation.

      And also I saw this in the test code

          // RawAsyncTableImpl never invokes the callback to `onScanMetricsCreated` -- bug?
      

      This is not a bug as you need to manually enable scan metrics by calling Scan.setScanMetricsEnabled(true).

      Let me also fix this.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: