Skip to content

Conversation

Abdul-Andha
Copy link
Contributor

@Abdul-Andha Abdul-Andha commented Aug 27, 2025

Description

  • Upgrade Warp to 0.4

How was this PR tested?

  • make test-all
  • ran the REST api tests

@Abdul-Andha Abdul-Andha requested a review from guilload August 27, 2025 18:47
@Abdul-Andha Abdul-Andha changed the title upgrade warp Upgrade Warp Sep 2, 2025
@Abdul-Andha Abdul-Andha self-assigned this Sep 3, 2025
@Abdul-Andha Abdul-Andha marked this pull request as ready for review September 3, 2025 20:30
@Abdul-Andha Abdul-Andha changed the title Upgrade Warp CLOUDPREM-197 Upgrade Warp Sep 4, 2025
@Abdul-Andha Abdul-Andha changed the title CLOUDPREM-197 Upgrade Warp Upgrade Warp Sep 4, 2025
@@ -570,27 +571,35 @@ async fn search_stream_endpoint(
.unwrap_or_else(|_| HeaderValue::from_static("Search stream error"));
let mut trailers = HeaderMap::new();
trailers.insert("X-Stream-Error", header_value);
let _ = sender.send_trailers(trailers).await;
sender.abort();
// let _ = tx.send_trailers(trailers).await;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i commented this out because mpsc::channel does not have send_trailers. Do we need this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just discovered http_body_util::channel::Channel::new(); (behind the channel feature). I have a feeling we can use that and it'll work nicely.

@Abdul-Andha Abdul-Andha requested a review from guilload September 8, 2025 17:54
@@ -123,17 +123,17 @@ hex = "0.4"
home = "0.5"
hostname = "0.3"
http = "1.3"
http-body = "1.0"
http-body-util = "0.1.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it.

Suggested change
http-body-util = "0.1.3"
http-body-util = "0.1"

@@ -570,27 +571,35 @@ async fn search_stream_endpoint(
.unwrap_or_else(|_| HeaderValue::from_static("Search stream error"));
let mut trailers = HeaderMap::new();
trailers.insert("X-Stream-Error", header_value);
let _ = sender.send_trailers(trailers).await;
sender.abort();
// let _ = tx.send_trailers(trailers).await;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just discovered http_body_util::channel::Channel::new(); (behind the channel feature). I have a feeling we can use that and it'll work nicely.

@Abdul-Andha
Copy link
Contributor Author

Abdul-Andha commented Sep 8, 2025

PR is blocked by this issue. Warp does not allow returning streams or other custom body types. This is needed for search stream endpoint in quickwit-serve/src/search_api/rest_handler.rs

@Abdul-Andha Abdul-Andha force-pushed the abdul.andha/upgrade-warp branch from 9b3e032 to b9db83b Compare September 9, 2025 19:58
@Abdul-Andha Abdul-Andha requested a review from guilload September 9, 2025 20:33
@Abdul-Andha Abdul-Andha merged commit 344a19c into main Sep 9, 2025
8 checks passed
@Abdul-Andha Abdul-Andha deleted the abdul.andha/upgrade-warp branch September 9, 2025 20:57
@Abdul-Andha Abdul-Andha mentioned this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants