File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ratis-grpc/src/main/java/org/apache/ratis/grpc/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -770,7 +770,7 @@ private void installSnapshot(SnapshotInfo snapshot) {
770770
771771 while (isRunning () && !responseHandler .isDone ()) {
772772 try {
773- getEventAwaitForSignal ().await ();
773+ getEventAwaitForSignal ().await (getWaitTimeMs (), TimeUnit . MILLISECONDS );
774774 } catch (InterruptedException ignored ) {
775775 Thread .currentThread ().interrupt ();
776776 }
@@ -815,7 +815,7 @@ private void notifyInstallSnapshot(TermIndex firstAvailable) {
815815
816816 while (isRunning () && !responseHandler .isDone ()) {
817817 try {
818- getEventAwaitForSignal ().await ();
818+ getEventAwaitForSignal ().await (getWaitTimeMs (), TimeUnit . MILLISECONDS );
819819 } catch (InterruptedException ignored ) {
820820 Thread .currentThread ().interrupt ();
821821 }
You can’t perform that action at this time.
0 commit comments