Skip to content

Commit

Permalink
change duckdb connection held check to log after 3 hours
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anshul committed Feb 11, 2025
1 parent 0bb0ff8 commit 5c0ae95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/drivers/duckdb/duckdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ func (c *connection) periodicallyEmitStats(d time.Duration) {
}

// maxAcquiredConnDuration is the maximum duration a connection can be held for before we consider it potentially hanging/deadlocked.
const maxAcquiredConnDuration = 1 * time.Hour
const maxAcquiredConnDuration = 3 * time.Hour

// periodicallyCheckConnDurations periodically checks the durations of all acquired connections and logs a warning if any have been held for longer than maxAcquiredConnDuration.
func (c *connection) periodicallyCheckConnDurations(d time.Duration) {
Expand Down

0 comments on commit 5c0ae95

Please sign in to comment.