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

Save bandwidth on partial_flag_per_result in ScanResponse proto

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-alpha-1, 1.5.0, 2.0.0
    • None
    • None
    • None

    Description

      Currently the ScanResponse proto sends out 1 bit per Result that it has embeds inside the CellScanner to indicate if it is partial or not.

          // In every RPC response there should be at most a single partial result. Furthermore, if
          // there is a partial result, it is guaranteed to be in the last position of the array.
      

      According to client, only the last result can be partial, thus this repeated bool can be converted to a bool, thus reducing overhead of serialization and deserialization of the array. This will break wire compatibility therefore this is something to look for in upcoming versions.

      Attachments

        Activity

          People

            karanmehta93 Karan Mehta
            karanmehta93 Karan Mehta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: