Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-alpha-4, 2.0.0
    • Component/s: Coprocessors
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Hide
      The incompatible changes of IA.Public/LimitedPrivate classes are shown below.
      + new method
      - removed method
      * deprecated method
      -------------------------------------
      HRegionLocation class
      + RegionInfo getRegion()
      * HRegionInfo getRegionInfo()

      AsyncAdmin class
      + CompletableFuture<List<RegionInfo>> getOnlineRegions(ServerName serverName);
      - CompletableFuture<List<HRegionInfo>> getOnlineRegions(ServerName serverName);
      + CompletableFuture<List<RegionInfo>> getTableRegions(TableName tableName);
      - CompletableFuture<List<HRegionInfo>> getTableRegions(TableName tableName);

      HBaseTestingUtility class
      - Table createTable(HTableDescriptor htd, byte[][] families, Configuration c)
      - Table createTable(HTableDescriptor htd, byte[][] families, byte[][] splitKeys, Configuration c)
      - Table createTable(HTableDescriptor htd, byte[][] splitRows)
      - void modifyTableSync(Admin admin, HTableDescriptor desc)
      - HRegion createLocalHRegion(HTableDescriptor desc, byte [] startKey, byte [] endKey)
      - HRegion createLocalHRegion(HRegionInfo info, HTableDescriptor desc)
      - HRegion createLocalHRegion(HRegionInfo info, TableDescriptor desc)
      + HRegion createLocalHRegion(RegionInfo info, TableDescriptor desc)
      - HRegion createLocalHRegion(HRegionInfo info, HTableDescriptor desc, WAL wal)
      - HRegion createLocalHRegion(HRegionInfo info, TableDescriptor desc, WAL wal)
      + HRegion createLocalHRegion(RegionInfo info, TableDescriptor desc, WAL wal)
      - List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf,final TableDescriptor htd, byte [][] startKeys)
      + List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf,final TableDescriptor htd, byte [][] startKeys)
      - WAL createWal(final Configuration conf, final Path rootDir, final HRegionInfo hri)
      + WAL createWal(final Configuration conf, final Path rootDir, final RegionInfo hri)
      - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir,final Configuration conf, final HTableDescriptor htd)
      - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir, final Configuration conf, final TableDescriptor htd)
      + HRegion createRegionAndWAL(final RegionInfo info, final Path rootDir, final Configuration conf, final TableDescriptor htd)
      - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir, final Configuration conf, final HTableDescriptor htd, boolean initialize)
      + HRegion createRegionAndWAL(final RegionInfo info, final Path rootDir, final Configuration conf, final HTableDescriptor htd, boolean initialize)
      - boolean assignRegion(final HRegionInfo regionInfo)
      + boolean assignRegion(final RegionInfo regionInfo)
      - void moveRegionAndWait(HRegionInfo destRegion, ServerName destServer)
      + void moveRegionAndWait(RegionInfo destRegion, ServerName destServer)
      - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor hcd)
      - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor hcd, int numRegionsPerServer)
      - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor[] hcds, int numRegionsPerServer)
      - HRegion createTestRegion(String tableName, HColumnDescriptor cd)

      WALEdit class
      - WALEdit createFlushWALEdit(HRegionInfo hri, FlushDescriptor f)
      + WALEdit createFlushWALEdit(RegionInfo hri, FlushDescriptor f)
      - WALEdit createRegionEventWALEdit(HRegionInfo hri,RegionEventDescriptor regionEventDesc)
      + WALEdit createRegionEventWALEdit(RegionInfo hri,RegionEventDescriptor regionEventDesc)
      - WALEdit createCompaction(final HRegionInfo hri, final CompactionDescriptor c)
      + WALEdit createCompaction(final RegionInfo hri, final CompactionDescriptor c)
      - byte[] getRowForRegion(HRegionInfo hri)
      + byte[] getRowForRegion(RegionInfo hri)
      - WALEdit createBulkLoadEvent(HRegionInfo hri, WALProtos.BulkLoadDescriptor bulkLoadDescriptor)
      + - WALEdit createBulkLoadEvent(RegionInfo hri, WALProtos.BulkLoadDescriptor bulkLoadDescriptor)

      RegionScanner class
      - HRegionInfo getRegionInfo();
      + RegionInfo getRegionInfo();

      RegionPlan class
      - RegionPlan(final HRegionInfo hri, ServerName source, ServerName dest)
      + RegionPlan(final RegionInfo hri, ServerName source, ServerName dest)

      Region class
      - HRegionInfo getRegionInfo();
      + RegionInfo getRegionInfo();

      TableSnapshotInputFormat.TableSnapshotRegionSplit class
      * HRegionInfo getRegionInfo()
      + RegionInfo getRegion()

      RawAsyncTable.CoprocessorCallback class
      - void onRegionComplete(HRegionInfo region, R resp)
      + void onRegionComplete(RegionInfo region, R resp)
      - void onRegionError(RegionInfo region, Throwable error);
      + void onRegionError(HRegionInfo region, Throwable error);
      Show
      The incompatible changes of IA.Public/LimitedPrivate classes are shown below. + new method - removed method * deprecated method ------------------------------------- HRegionLocation class + RegionInfo getRegion() * HRegionInfo getRegionInfo() AsyncAdmin class + CompletableFuture<List<RegionInfo>> getOnlineRegions(ServerName serverName); - CompletableFuture<List<HRegionInfo>> getOnlineRegions(ServerName serverName); + CompletableFuture<List<RegionInfo>> getTableRegions(TableName tableName); - CompletableFuture<List<HRegionInfo>> getTableRegions(TableName tableName); HBaseTestingUtility class - Table createTable(HTableDescriptor htd, byte[][] families, Configuration c) - Table createTable(HTableDescriptor htd, byte[][] families, byte[][] splitKeys, Configuration c) - Table createTable(HTableDescriptor htd, byte[][] splitRows) - void modifyTableSync(Admin admin, HTableDescriptor desc) - HRegion createLocalHRegion(HTableDescriptor desc, byte [] startKey, byte [] endKey) - HRegion createLocalHRegion(HRegionInfo info, HTableDescriptor desc) - HRegion createLocalHRegion(HRegionInfo info, TableDescriptor desc) + HRegion createLocalHRegion(RegionInfo info, TableDescriptor desc) - HRegion createLocalHRegion(HRegionInfo info, HTableDescriptor desc, WAL wal) - HRegion createLocalHRegion(HRegionInfo info, TableDescriptor desc, WAL wal) + HRegion createLocalHRegion(RegionInfo info, TableDescriptor desc, WAL wal) - List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf,final TableDescriptor htd, byte [][] startKeys) + List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf,final TableDescriptor htd, byte [][] startKeys) - WAL createWal(final Configuration conf, final Path rootDir, final HRegionInfo hri) + WAL createWal(final Configuration conf, final Path rootDir, final RegionInfo hri) - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir,final Configuration conf, final HTableDescriptor htd) - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir, final Configuration conf, final TableDescriptor htd) + HRegion createRegionAndWAL(final RegionInfo info, final Path rootDir, final Configuration conf, final TableDescriptor htd) - HRegion createRegionAndWAL(final HRegionInfo info, final Path rootDir, final Configuration conf, final HTableDescriptor htd, boolean initialize) + HRegion createRegionAndWAL(final RegionInfo info, final Path rootDir, final Configuration conf, final HTableDescriptor htd, boolean initialize) - boolean assignRegion(final HRegionInfo regionInfo) + boolean assignRegion(final RegionInfo regionInfo) - void moveRegionAndWait(HRegionInfo destRegion, ServerName destServer) + void moveRegionAndWait(RegionInfo destRegion, ServerName destServer) - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor hcd) - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor hcd, int numRegionsPerServer) - int createPreSplitLoadTestTable(Configuration conf, HTableDescriptor desc, HColumnDescriptor[] hcds, int numRegionsPerServer) - HRegion createTestRegion(String tableName, HColumnDescriptor cd) WALEdit class - WALEdit createFlushWALEdit(HRegionInfo hri, FlushDescriptor f) + WALEdit createFlushWALEdit(RegionInfo hri, FlushDescriptor f) - WALEdit createRegionEventWALEdit(HRegionInfo hri,RegionEventDescriptor regionEventDesc) + WALEdit createRegionEventWALEdit(RegionInfo hri,RegionEventDescriptor regionEventDesc) - WALEdit createCompaction(final HRegionInfo hri, final CompactionDescriptor c) + WALEdit createCompaction(final RegionInfo hri, final CompactionDescriptor c) - byte[] getRowForRegion(HRegionInfo hri) + byte[] getRowForRegion(RegionInfo hri) - WALEdit createBulkLoadEvent(HRegionInfo hri, WALProtos.BulkLoadDescriptor bulkLoadDescriptor) + - WALEdit createBulkLoadEvent(RegionInfo hri, WALProtos.BulkLoadDescriptor bulkLoadDescriptor) RegionScanner class - HRegionInfo getRegionInfo(); + RegionInfo getRegionInfo(); RegionPlan class - RegionPlan(final HRegionInfo hri, ServerName source, ServerName dest) + RegionPlan(final RegionInfo hri, ServerName source, ServerName dest) Region class - HRegionInfo getRegionInfo(); + RegionInfo getRegionInfo(); TableSnapshotInputFormat.TableSnapshotRegionSplit class * HRegionInfo getRegionInfo() + RegionInfo getRegion() RawAsyncTable.CoprocessorCallback class - void onRegionComplete(HRegionInfo region, R resp) + void onRegionComplete(RegionInfo region, R resp) - void onRegionError(RegionInfo region, Throwable error); + void onRegionError(HRegionInfo region, Throwable error);

      Attachments

      1. HBASE-18839.v2.patch
        1.43 MB
        Chia-Ping Tsai
      2. HBASE-18839.v1.patch
        1.39 MB
        Chia-Ping Tsai
      3. HBASE-18839.v0.patch
        1.39 MB
        Chia-Ping Tsai

        Issue Links

          Activity

            People

            • Assignee:
              chia7712 Chia-Ping Tsai
              Reporter:
              chia7712 Chia-Ping Tsai
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: