configure timeout
See original GitHub issueI like to increase the timeouts for the migration tasks for my spring boot app. The default timeout for my app is set to 2 seconds. I don’t want to change that, as it will change the application performance.
But for the actual migration during startup, I don’t mind a bigger timeout. So it would be great to configure that specifically so that the startup does not fails.
Log message from the spring boot start:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'migrationTask' defined in class path resource [org/cognitor/cassandra/migration/spring/CassandraMigrationAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.cognitor.cassandra.migration.MigrationTask]: Factory method 'migrationTask' threw exception; nested exception is com.datastax.oss.driver.api.core.DriverTimeoutException: Query timed out after PT2S
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Setting System Timeouts
Select the Settings button on the Home screen. · The Settings screen displays. · Select Timeouts. · Select the appropriate timeout from the...
Read more >Configure Timeout Settings - VMware Docs
In the vSphere Client, navigate to the vCenter Server instance. · Select the Configure tab. · Under Settings, select General. · Click Edit....
Read more >Configure the idle connection timeout for your Classic Load ...
Configure the idle timeout using the console. By default, Elastic Load Balancing sets the idle timeout for your load balancer to 60 seconds....
Read more >What timeout settings can I set? - IBM
Timeout settings allow the server to clean up inactive sessions, which frees up resources and memory from services that are used by active...
Read more >Configure the remote query timeout Server Configuration Option
To configure the remote query timeout option Click the Connections node. Under Remote server connections, in the Remote query timeout box, type ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As of 2.5.0_v4 the execution profile can now be configured via spring: https://github.com/patka/cassandra-migration/blob/master_v4/cassandra-migration-spring-boot-starter/src/main/java/org/cognitor/cassandra/migration/spring/CassandraMigrationConfigurationProperties.java#L128-L144
Thanks @dnsbtchr for answering this. I will create a FAQ section in the README where I put this.
@achimgrimm based on your reaction I assume this works for you 😃