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

Return incorrect result for a scan rpc call when readType switch from pread to stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • scan, Scanners
    • None

    Description

      Scan's default readType is PREAD, and there is a readType transform from PREAD to STREAM when a long scan is executed. E.G. I ask for result of 'count table', and now it will return immediately before the RPC get real data because of this transform, so the result returned maybe incorrect. Although, we can explicitly use STREAM instead of PREAD to avoid this transform. I am still confused, how can we judge whether transform is called? How can I trust my result is real when we allow transform occur?

      Attachments

        1. ClientScanTest.java
          5 kB
          Yuefeng Wang
        2. image-2021-08-31-10-16-37-417.png
          0.3 kB
          Yuefeng Wang

        Activity

          People

            Unassigned Unassigned
            Yuefeng Wang Yuefeng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: