We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56efae3 commit 74a39ceCopy full SHA for 74a39ce
src/handlers/http/logstream.rs
@@ -47,7 +47,16 @@ use tracing::warn;
47
48
pub async fn delete(stream_name: Path<String>) -> Result<impl Responder, StreamError> {
49
let stream_name = stream_name.into_inner();
50
- if !PARSEABLE.streams.contains(&stream_name) {
+ // Error out if stream doesn't exist in memory, or in the case of query node, in storage as well
51
+ if !PARSEABLE.streams.contains(&stream_name)
52
+ && PARSEABLE.options.mode == Mode::Query
53
+ && matches!(
54
+ PARSEABLE
55
+ .create_stream_and_schema_from_storage(&stream_name)
56
+ .await,
57
+ Ok(true) | Err(_)
58
+ )
59
+ {
60
return Err(StreamNotFound(stream_name).into());
61
}
62
0 commit comments