diff --git a/src/cpp/server/orca/orca_service.cc b/src/cpp/server/orca/orca_service.cc index 2d84a7c4ab2..55bc14d7266 100644 --- a/src/cpp/server/orca/orca_service.cc +++ b/src/cpp/server/orca/orca_service.cc @@ -40,7 +40,7 @@ class OrcaService::Reactor : public ServerWriteReactor, GRPC_CLOSURE_INIT(&on_timer_, OnTimer, this, nullptr); // Get slice from request. Slice slice; - request_buffer->DumpToSingleSlice(&slice); + GPR_ASSERT(request_buffer->DumpToSingleSlice(&slice).ok()); // Parse request proto. upb::Arena arena; xds_service_orca_v3_OrcaLoadReportRequest* request =