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

[HBCK2] HBCKMetaTableAccessor.deleteFromMetaTable throwing java.lang.UnsupportedOperationException at runtime

    XMLWordPrintableJSON

Details

    Description

      Came around this while converting some UTs from HBASE-22567 to use HBCKMetaTableAccessor. When calling HBCKMetaTableAccessor.deleteRegionInfo, I'm getting error as shown below, because list returned by Arrays.asList apparently does not implement delete method:

      java.lang.UnsupportedOperationException
      	at java.util.AbstractList.remove(AbstractList.java:161)
      	at org.apache.hadoop.hbase.client.HTable.delete(HTable.java:522)
      	at org.apache.hbase.HBCKMetaTableAccessor.deleteFromMetaTable(HBCKMetaTableAccessor.java:136)
      	at org.apache.hbase.HBCKMetaTableAccessor.deleteRegionInfo(HBCKMetaTableAccessor.java:89)
      	at org.apache.hbase.TestHBCK2.testReportMissingRegionsInMetaSpecificTblAndNsTblAlsoMissing(TestHBCK2.java:225)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

      Attachments

        Issue Links

          Activity

            People

              wchevreuil Wellington Chevreuil
              wchevreuil Wellington Chevreuil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: