File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,19 @@ pub async fn get_stream_hot_tier(stream_name: Path<String>) -> Result<impl Respo
445445 } ;
446446 let meta = hot_tier_manager. get_hot_tier ( & stream_name) . await ?;
447447
448+ let mut stream_metadata: ObjectStoreFormat = serde_json:: from_slice (
449+ & PARSEABLE
450+ . metastore
451+ . get_stream_json ( & stream_name, false )
452+ . await ?,
453+ ) ?;
454+ stream_metadata. hot_tier_enabled = false ;
455+
456+ PARSEABLE
457+ . metastore
458+ . put_stream_json ( & stream_metadata, & stream_name)
459+ . await ?;
460+
448461 Ok ( ( web:: Json ( meta) , StatusCode :: OK ) )
449462}
450463
Original file line number Diff line number Diff line change @@ -989,7 +989,7 @@ pub async fn commit_schema_to_storage(
989989 schema,
990990 serde_json:: from_slice:: <Schema >( & stream_schema) ?,
991991 ] )
992- . unwrap ( ) ;
992+ . map_err ( |e| ObjectStorageError :: Custom ( e . to_string ( ) ) ) ? ;
993993
994994 PARSEABLE
995995 . metastore
You can’t perform that action at this time.
0 commit comments