Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Some cleanup of Leases and ScannerListener.leaseExpired:
- Reject renewLease if stopRequested (same as addLease, stopRequested means Leases is asked to stop and is waiting for all remained leases to expire)
- Raise log level from info to warn for case that no related region scanner found when a lease expires (should it be an error?)
- Replace System.currentTimeMillis() with EnvironmentEdgeManager.currentTimeMillis()
- Correct some wrong comments and remove some irrelevant comments(Queue rather than Map is used for leases before?)