Skip to content

Commit

Permalink
HBASE-27205 Fix tests that rely on EnvironmentEdgeManager in branch-2…
Browse files Browse the repository at this point in the history
….4 (addendum) (apache#4631)

Signed-off-by: Andrew Purtell <apurtell@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
(cherry picked from commit f5f248d)
Change-Id: I061fe714855e6f4963b1743c53ced9f4dd9f44b6
  • Loading branch information
bbeaudreault authored Jul 18, 2022
1 parent 88e5155 commit ba70a32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6496,7 +6496,7 @@ protected RowLock getRowLockInternal(byte[] row, boolean readLock, final RowLock
if (call.isPresent()) {
long deadline = call.get().getDeadline();
if (deadline < Long.MAX_VALUE) {
int timeToDeadline = (int) (deadline - System.currentTimeMillis());
int timeToDeadline = (int) (deadline - EnvironmentEdgeManager.currentTime());
if (timeToDeadline <= this.rowLockWaitDuration) {
reachDeadlineFirst = true;
timeout = timeToDeadline;
Expand Down

0 comments on commit ba70a32

Please sign in to comment.