File tree 2 files changed +5
-2
lines changed
core/src/main/java/tech/ydb/core/impl
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 9
9
import org .slf4j .Logger ;
10
10
import org .slf4j .LoggerFactory ;
11
11
12
+
12
13
/**
13
14
*
14
15
* @author Aleksandr Gorshenin
15
16
*/
16
17
public class YdbSchedulerFactory {
17
- private static final long WAIT_FOR_SHUTDOWN_MS = 1000 ;
18
+ /** Scheduler waits for closing of channels so this timeout must be greater that GrpcChannel.WAIT_FOR_CLOSING_MS */
19
+ private static final long WAIT_FOR_SHUTDOWN_MS = 2 * 5000 ;
18
20
19
21
private static final Logger logger = LoggerFactory .getLogger (YdbSchedulerFactory .class );
20
22
Original file line number Diff line number Diff line change 15
15
* @author Nikolay Perfilov
16
16
*/
17
17
public class GrpcChannel {
18
- private static final long WAIT_FOR_CLOSING_MS = 1000 ;
18
+ /* Channel shutdown waits for finish of active grpc calls, so there must be enough time to complete them all */
19
+ private static final long WAIT_FOR_CLOSING_MS = 5000 ;
19
20
private static final Logger logger = LoggerFactory .getLogger (GrpcChannel .class );
20
21
21
22
private final EndpointRecord endpoint ;
You can’t perform that action at this time.
0 commit comments