Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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