databricks/zerobus-sdk rust/v2.0.1
databricks/zerobus-sdk
Captured source
source ↗Rust SDK v2.0.1
Repository: databricks/zerobus-sdk
Tag: rust/v2.0.1
Published: 2026-05-21T16:36:48Z
Prerelease: no
Release notes:
Major Changes
New Features and Improvements
Bug Fixes
- **Arrow Flight: fix race condition causing stale wire offsets after non-close-signal
recovery.** When a stream broke via a server error or ack timeout (rather than a graceful close signal), the supervisor did not set the ingest-pause gate before starting reconnect. A concurrent ingest_batch call could send a batch with a pre-recovery wire offset, which the server rejects with error code 4002 (NonIncrementalOffset), exhausting recovery retries and failing the entire stream. Fix: set is_paused = true immediately when entering the retriable-error retry branch, symmetric with the existing close-signal path.
- Arrow Flight: restore automatic batch chunking at 2 MiB. Reverted the manual
zero-copy IPC encoding introduced in v2.0.0 back to FlightDataEncoderBuilder, which automatically chunks large RecordBatch values at 2 MiB. The zero-copy refactor had removed this chunking, causing large batches to exceed the server's message size limit of 10MB and be rejected. ingest_ipc_batch now deserialises IPC bytes into a RecordBatch before encoding, so it correctly benefits from the same chunking and supports streams with ipc_compression enabled.