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,
)
| 80 | /// Creates a request envelope, registers with the tracker for correlation, |
| 81 | /// dispatches via the SPSC bridge, and awaits the response with a timeout. |
| 82 | pub 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 | /// |