MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / dispatch_to_data_plane

Function dispatch_to_data_plane

nodedb/src/control/server/dispatch_utils.rs:82–98  ·  view source on GitHub ↗

Dispatch a physical plan to the Data Plane and await the response. Creates a request envelope, registers with the tracker for correlation, dispatches via the SPSC bridge, and awaits the response with a timeout.

(
    shared: &SharedState,
    tenant_id: TenantId,
    vshard_id: VShardId,
    plan: PhysicalPlan,
    trace_id: TraceId,
)

Source from the content-addressed store, hash-verified

80/// Creates a request envelope, registers with the tracker for correlation,
81/// dispatches via the SPSC bridge, and awaits the response with a timeout.
82pub async fn dispatch_to_data_plane(
83 shared: &SharedState,
84 tenant_id: TenantId,
85 vshard_id: VShardId,
86 plan: PhysicalPlan,
87 trace_id: TraceId,
88) -> crate::Result<Response> {
89 dispatch_to_data_plane_with_source(
90 shared,
91 tenant_id,
92 vshard_id,
93 plan,
94 trace_id,
95 crate::event::EventSource::User,
96 )
97 .await
98}
99
100/// Dispatch a physical plan to the Data Plane with an explicit event source.
101///

Callers 8

flush_ilp_batch_innerFunction · 0.70
run_catchup_cycleFunction · 0.50
execute_then_actionFunction · 0.50
run_preexec_scanFunction · 0.50
fetch_old_rowFunction · 0.50
ingest_ilpFunction · 0.50
dispatch_localFunction · 0.50
dispatchMethod · 0.50

Calls 1

Tested by 1

dispatchMethod · 0.40