Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ async fn consume_current_local(
NodeControlMsg::Config { .. } => observed.configs += 1,
NodeControlMsg::DrainIngress { .. }
| NodeControlMsg::Shutdown { .. }
| NodeControlMsg::DelayedData { .. } => {
| NodeControlMsg::DelayedData { .. }
| NodeControlMsg::Wakeup { .. } => {
panic!("unexpected message in benchmark current local receiver");
}
}
Expand Down Expand Up @@ -203,7 +204,8 @@ async fn consume_current_shared(
NodeControlMsg::Config { .. } => observed.configs += 1,
NodeControlMsg::DrainIngress { .. }
| NodeControlMsg::Shutdown { .. }
| NodeControlMsg::DelayedData { .. } => {
| NodeControlMsg::DelayedData { .. }
| NodeControlMsg::Wakeup { .. } => {
panic!("unexpected message in benchmark current shared receiver");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1280,11 +1280,13 @@ mod tests {

let (batch_received_tx, mut batch_received_rx) = tokio::sync::mpsc::channel(1);
let (server_shutdown_tx, server_shutdown_rx) = tokio::sync::oneshot::channel();
let (server_ready_tx, server_ready_rx) = tokio::sync::oneshot::channel();

// Start gRPC server that returns errors
let listening_addr: SocketAddr = format!("{grpc_addr}:{grpc_port}").parse().unwrap();
let server_handle = tokio_rt.spawn(async move {
let tcp_listener = TcpListener::bind(listening_addr).await.unwrap();
let _ = server_ready_tx.send(());
let tcp_stream = TcpListenerStream::new(tcp_listener);
let error_service = ArrowLogsServiceServer::new(ArrowLogsServiceGrpcErrorMock {
sender: batch_received_tx,
Expand Down Expand Up @@ -1316,6 +1318,10 @@ mod tests {
});

tokio::join!(local_set, async {
server_ready_rx
.await
.expect("server should bind before exporter traffic starts");

// Send a batch with ACK/NACK subscription
let log_message = create_otap_batch(LOG_BATCH_ID, ArrowPayloadType::Logs);
let pdata = OtapPdata::new_default(log_message.into()).test_subscribe_to(
Expand Down
Loading
Loading