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

Some code cleanup of class Leases and ScannerListener.leaseExpired

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.99.0
    • regionserver
    • None
    • Reviewed

    Description

      Some cleanup of Leases and ScannerListener.leaseExpired:

      1. Reject renewLease if stopRequested (same as addLease, stopRequested means Leases is asked to stop and is waiting for all remained leases to expire)
      2. Raise log level from info to warn for case that no related region scanner found when a lease expires (should it be an error?)
      3. Replace System.currentTimeMillis() with EnvironmentEdgeManager.currentTimeMillis()
      4. Correct some wrong comments and remove some irrelevant comments(Queue rather than Map is used for leases before?)

      Attachments

        1. HBASE-10663-trunk_v1.patch
          4 kB
          Honghua Feng

        Activity

          People

            fenghh Honghua Feng
            fenghh Honghua Feng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: