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

Add option to allow caller to know the heartbeat and scanner position when scanner timeout

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • Scanners
    • None

    Description

      HBASE-13090 introduced scanner heartbeat. However, there are still some limitations (see HBASE-13215). In some application, for example, an operation access hbase to scan table data, and there is strict limit that this call must return in a fixed interval. At the same time, this call is stateless, so the call must return the next position to continue the scan. This is typical use case for online applications.

      Based on this requirement, some improvements are proposed:
      1. Allow client set a flag whether pass the heartbeat (a result contains the scanner position) to the caller (via ResultScanner next)
      2. Allow the client pass a timeout to the server, which can override the server side default value
      3. When requested by the client, the server peek the next cell and return to the client in the heartbeat message

      Attachments

        1. HBASE-13984-V1.diff
          77 kB
          He Liangliang
        2. HBASE-13984-V2.diff
          160 kB
          He Liangliang
        3. HBASE-13984-V3.diff
          160 kB
          He Liangliang
        4. HBASE-13984-V3.patch
          160 kB
          Michael Stack
        5. HBASE-13984-V4.diff
          174 kB
          He Liangliang
        6. HBASE-13984-V5.diff
          194 kB
          He Liangliang

        Issue Links

          Activity

            People

              Unassigned Unassigned
              heliangliang He Liangliang
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: