1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-License-Identifier: BUSL-1.1
//! Shared decode for the Data Plane's [`SyncAckResult`] reply.
//!
//! Every per-engine sync session (vector / fts / spatial / columnar /
//! timeseries) receives a msgpack-encoded [`SyncAckResult`] in the Data Plane
//! response payload and needs identical fallback behaviour when it fails to
//! decode. This module is the single place that decision lives.
use warn;
use ;
/// Decode the [`SyncAckResult`] returned by the Data Plane in a sync ingest
/// response payload.
///
/// A decode failure here is not expected: the dispatch already returned `Ok`,
/// meaning the engine write succeeded — only the small ack envelope failed to
/// parse. We log loudly and synthesise an `Applied` ack at `fallback_seq` so the
/// client still receives a positive acknowledgement for the durable write,
/// rather than a spurious rejection. Routing every engine session through this
/// one path keeps the fallback behaviour identical across engines.
pub