Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network-tunnel: Don't fail on Stop() of nil tunnel #2175

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Dec 3, 2024

Description:

Currently source-oracle does an unconditional db.tunnel.Stop() during shutdown regardless of whether a network tunnel exists, but the implementation of Stop() assumes that the tunnel must not be nil. This disagreement could be resolved in either direction, but it seemed cleaner to just make Stop() a no-op for nil receivers.


This change is Reviewable

Currently `source-oracle` does an unconditional `db.tunnel.Stop()`
during shutdown regardless of whether a network tunnel exists, but
the implementation of `Stop()` assumes that the tunnel must not be
nil. This disagreement could be resolved in either direction, but
it seemed cleaner to just make `Stop()` a no-op for nil receivers.
@willdonnelly willdonnelly added the change:unplanned Unplanned change, useful for things like doc updates label Dec 3, 2024
@willdonnelly willdonnelly requested review from mdibaiee and a team December 3, 2024 16:13
Copy link
Member

@dyaffe dyaffe left a comment

Choose a reason for hiding this comment

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

LGTM

@willdonnelly willdonnelly merged commit 64bba0f into main Dec 3, 2024
52 of 53 checks passed
@willdonnelly willdonnelly deleted the wgd/oracle-segfault-20241203 branch December 3, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants