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

TestAsyncTable#testCheckAndMutateWithTimeRange fails due to TableExistsException

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      The following test failure is reproducible:

      org.apache.hadoop.hbase.TableExistsException: testCheckAndMutateWithTimeRange
       at org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.prepareCreate(CreateTableProcedure.java:233)
       at org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.executeFromState(CreateTableProcedure.java:87)
       at org.apache.hadoop.hbase.master.procedure.CreateTableProcedure.executeFromState(CreateTableProcedure.java:51)
       at org.apache.hadoop.hbase.procedure2.StateMachineProcedure.execute(StateMachineProcedure.java:184)
       at org.apache.hadoop.hbase.procedure2.Procedure.doExecute(Procedure.java:845)
       at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.execProcedure(ProcedureExecutor.java:1453)
      

      The cause was that TestAsyncTable is parameterized while the testCheckAndMutateWithTimeRange uses the same table name without dropping the table after the first invocation finishes.
      This leads to second invocation failing with TableExistsException.

      Attachments

        1. 20272.v2.txt
          0.7 kB
          Ted Yu
        2. 20272.v1.txt
          1.0 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: