question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

configure timeout

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
patkacommented, Nov 6, 2021

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found