XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • asyncclient, Client, Scanners
    • None
    • Reviewed

    Description

      Now for the AsyncResultScanner, we can only close the scanner if we reach the cache size limit and open a new scanner later. This will breaks the region level consistency.

      For example, you put 10 rows to the region, and open a scanner to scan it. The scanner returns 5 rows at the first time and the cache is full, so it closes the background scanner. And before you reopens the scanner to fetch data, the remaining 5 rows has been deleted and a compaction makes them gone for ever. Then after you reopen the scanner you can not see the remaining 5 rows.

      So here we should keep the scanner open at RS side to prevent the data below the mvcc read point of this scanner being deleted.

      Attachments

        1. HBASE-17608-v5.patch
          49 kB
          Duo Zhang
        2. HBASE-17608-v4.patch
          48 kB
          Duo Zhang
        3. HBASE-17608-v3.patch
          48 kB
          Duo Zhang
        4. HBASE-17608-v2.patch
          45 kB
          Duo Zhang
        5. HBASE-17608-v1.patch
          49 kB
          Duo Zhang
        6. HBASE-17608.patch
          46 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: