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>
  • Loading branch information
bbeaudreault authored Jul 18, 2022
1 parent bc6295e commit f5f248d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6502,7 +6502,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 f5f248d

Please sign in to comment.