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

The methods in AsyncTableRegionLocator should not throw IOException directly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1
    • API, Client
    • None
    • Incompatible change, Reviewed
    • Hide
      Remove the throws part for the following 3 methods in AsyncTableRegionLocator:

      getStartKeys
      getEndKeys
      getStartEndKeys

      It is a mistake and we will never throw exception directly from these methods. The should get the exception from the returned CompletableFuture.

      In order to not introduce new methods and make more confusing, we just remove the throws part. It is an incompatible change, you may need to change your code to remove the catch section when you upgrade to HBase 3.x.
      Show
      Remove the throws part for the following 3 methods in AsyncTableRegionLocator: getStartKeys getEndKeys getStartEndKeys It is a mistake and we will never throw exception directly from these methods. The should get the exception from the returned CompletableFuture. In order to not introduce new methods and make more confusing, we just remove the throws part. It is an incompatible change, you may need to change your code to remove the catch section when you upgrade to HBase 3.x.

    Description

      This is an incompatible change as we changed the method signature.

      But anyway this is a mistake so we should fix it...

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: