Skip to content

Commit 0271476

Browse files
feat: remove validation for hot tier with time partition (#891)
users can set hot tier for a stream with time partition
1 parent 900bf47 commit 0271476

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

server/src/handlers/http/logstream.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -967,17 +967,6 @@ pub async fn put_stream_hot_tier(
967967
return Err(StreamError::HotTierNotEnabled(stream_name));
968968
}
969969

970-
if STREAM_INFO
971-
.get_time_partition(&stream_name)
972-
.unwrap()
973-
.is_some()
974-
{
975-
return Err(StreamError::Custom {
976-
msg: "Hot tier can not be enabled for stream with time partition".to_string(),
977-
status: StatusCode::BAD_REQUEST,
978-
});
979-
}
980-
981970
let body = body.into_inner();
982971
let mut hottier: StreamHotTier = match serde_json::from_value(body) {
983972
Ok(hottier) => hottier,

0 commit comments

Comments
 (0)