Skip to content

Commit

Permalink
Increase default closing timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Sep 24, 2024
1 parent 22ed47b commit 245c03a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
*
* @author Aleksandr Gorshenin
*/
public class YdbSchedulerFactory {
private static final long WAIT_FOR_SHUTDOWN_MS = 1000;
/** Scheduler waits for closing of channels so this timeout must be greater that GrpcChannel.WAIT_FOR_CLOSING_MS */
private static final long WAIT_FOR_SHUTDOWN_MS = 2 * 5000;

private static final Logger logger = LoggerFactory.getLogger(YdbSchedulerFactory.class);

Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/tech/ydb/core/impl/pool/GrpcChannel.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
* @author Nikolay Perfilov
*/
public class GrpcChannel {
private static final long WAIT_FOR_CLOSING_MS = 1000;
/* Channel shutdown waits for finish of active grpc calls, so there must be enough time to complete them all */
private static final long WAIT_FOR_CLOSING_MS = 5000;
private static final Logger logger = LoggerFactory.getLogger(GrpcChannel.class);

private final EndpointRecord endpoint;
Expand Down

0 comments on commit 245c03a

Please sign in to comment.