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

HRegion#execService should not try to build incomplete messages

    XMLWordPrintableJSON

Details

    • Incompatible change
    • When RegionServerCoprocessors throw an exception we will no longer attempt to build an incomplete RPC response message. Instead, the response message will be null.

    Description

      If some RPC service, called on region throws exception, execService still tries to build Message. In case of complex messages with required fields it complicates service code because service need to pass fake protobuf objects, so they can be barely buildable.
      To mitigate that I propose to check that controller was failed and return null from call instead of failing with exception.

      Attachments

        1. HBASE-13646.patch
          24 kB
          Andrey Stepachev
        2. HBASE-13646.v2.patch
          24 kB
          Andrey Stepachev
        3. HBASE-13646.v2.patch
          24 kB
          Andrey Stepachev
        4. HBASE-13646-branch-1.patch
          24 kB
          Andrey Stepachev

        Activity

          People

            octo47 Andrey Stepachev
            octo47 Andrey Stepachev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: