Skip to content

fix: return structured GreptimeDB errors - #39

Open
JimMoen wants to merge 6 commits into
emqx:release/6.xfrom
JimMoen:fix/18984-greptimedb-error-contract
Open

JimMoen wants to merge 6 commits into
emqx:release/6.xfrom
JimMoen:fix/18984-greptimedb-error-contract

Conversation

@JimMoen

@JimMoen JimMoen commented Nov 9, 2026

Copy link
Copy Markdown
Member

Submit network operations asynchronously, bound CPU conversion work, and preserve public APIs with deadline and lifecycle regression coverage.

This comment was marked as resolved.

This comment was marked as resolved.

Use greptimedb-ingester 0.15.3-emqx.2 for preserved Tonic statuses.

Declare tonic directly for gRPC status classification.
Return error kind, source, status, stage, write outcome, and retry hint.

Export the native error contract from the Erlang API.

Keep missing-table lookup separate from real transport failures.
Mark mutating query failures as unknown and recognize h2 disconnects.

Invalidate channels after transport or cancelled work.

Classify pre-send validation and encoding errors as not sent.
Cover transport recovery, response-stream disconnects, query outcomes, and empty stream writes.

Assert pre-send failures remain not sent.
Classify malformed PutResult metadata as a protocol error with unknown outcome.

Fall back only for unsupported column types during partial inserts.

Keep stream schema lookup and SDK transport failures fatal.
@JimMoen
JimMoen force-pushed the fix/18984-greptimedb-error-contract branch from 2155dbf to 3dee68c Compare November 9, 2026 10:07
Assert malformed PutResult metadata is protocol with unknown outcome.

Verify partial inserts ignore unused unsupported server columns.
@JimMoen
JimMoen force-pushed the fix/18984-greptimedb-error-contract branch from 3dee68c to f4177f6 Compare November 9, 2026 10:18
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