Skip to content

signal not-connected southbound as codes.Unavailable - #466

Open
alexandernorth wants to merge 1 commit into
mainfrom
feature/not-connected-error
Open

signal not-connected southbound as codes.Unavailable#466
alexandernorth wants to merge 1 commit into
mainfrom
feature/not-connected-error

Conversation

@alexandernorth

@alexandernorth alexandernorth commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Problem

When a datastore's southbound interface (device) is not connected, the
transaction path returned a plain error, which reaches gRPC clients as
code = Unknown. Clients can't distinguish this transient condition from a
permanent failure.

Change

Introduce ErrNotConnected and map it to gRPC codes.Unavailable, and
use it where not connected errors were produced previously

Notes

Enables config-server to retry instead of treating it as permanent.

Pairs-with: sdcio/config-server#468

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/datastore/target/netconf/nc.go 0.00% 2 Missing ⚠️
pkg/datastore/intent_rpc.go 0.00% 1 Missing ⚠️
pkg/datastore/target/gnmi/gnmi.go 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant