|
18 | 18 |
|
19 | 19 | pub mod utils; |
20 | 20 |
|
21 | | -use crate::handlers::http::cluster::utils::{ |
22 | | - check_liveness, ingester_meta_filename, to_url_string, |
23 | | -}; |
| 21 | +use crate::handlers::http::cluster::utils::{check_liveness, to_url_string}; |
24 | 22 | use crate::handlers::http::ingest::PostError; |
25 | 23 | use crate::handlers::http::logstream::error::StreamError; |
26 | 24 | use crate::handlers::{STATIC_SCHEMA_FLAG, TIME_PARTITION_KEY}; |
27 | 25 | use crate::option::CONFIG; |
28 | 26 |
|
29 | 27 | use crate::metrics::prom_utils::Metrics; |
| 28 | +use crate::storage::object_storage::ingester_metadata_path; |
30 | 29 | use crate::storage::ObjectStorageError; |
31 | 30 | use crate::storage::PARSEABLE_ROOT_DIRECTORY; |
32 | 31 | use actix_web::http::header; |
@@ -380,7 +379,12 @@ pub async fn remove_ingester(req: HttpRequest) -> Result<impl Responder, PostErr |
380 | 379 | return Err(PostError::Invalid(anyhow::anyhow!("Node Online"))); |
381 | 380 | } |
382 | 381 |
|
383 | | - let ingester_meta_filename = ingester_meta_filename(&domain_name); |
| 382 | + let url = Url::parse(&domain_name).unwrap(); |
| 383 | + let ingester_meta_filename = ingester_metadata_path( |
| 384 | + url.host_str().unwrap().to_owned(), |
| 385 | + url.port().unwrap().to_string(), |
| 386 | + ) |
| 387 | + .to_string(); |
384 | 388 | let object_store = CONFIG.storage().get_object_store(); |
385 | 389 | let msg = match object_store |
386 | 390 | .try_delete_ingester_meta(ingester_meta_filename) |
|
0 commit comments