Skip to content

Connection close#8793

Merged
k-anshul merged 3 commits intomainfrom
connection_close
Feb 10, 2026
Merged

Connection close#8793
k-anshul merged 3 commits intomainfrom
connection_close

Conversation

@k-anshul
Copy link
Member

@k-anshul k-anshul commented Feb 9, 2026

closes https://linear.app/rilldata/issue/PLAT-314/rill-does-not-release-its-lock-on-local-duckdb-databases

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@k-anshul k-anshul self-assigned this Feb 9, 2026
Comment on lines +213 to +217
// close the connection
r.connCache.EvictWhere(func(cfg any) bool {
x := cfg.(cachedConnectionConfig)
return x.instanceID == instanceID && x.name == name
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the connector is re-opened before EditInstance is called below? Should it maybe only evict after the call to EditInstance succeeds?

@k-anshul k-anshul merged commit a18220b into main Feb 10, 2026
10 checks passed
@k-anshul k-anshul deleted the connection_close branch February 10, 2026 09:20
begelundmuller pushed a commit that referenced this pull request Feb 10, 2026
* feat: close connections on deleting a connector in Rill

* feat: close connections on deleting a connector in Rill

* review comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants