File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
server/src/handlers/http/cluster Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,9 @@ pub async fn remove_ingestor(req: HttpRequest) -> Result<impl Responder, PostErr
472
472
let domain_name = to_url_string ( domain_name) ;
473
473
474
474
if check_liveness ( & domain_name) . await {
475
- return Err ( PostError :: Invalid ( anyhow:: anyhow!( "Node Online" ) ) ) ;
475
+ return Err ( PostError :: Invalid ( anyhow:: anyhow!(
476
+ "The ingestor is currently live and cannot be removed"
477
+ ) ) ) ;
476
478
}
477
479
let object_store = CONFIG . storage ( ) . get_object_store ( ) ;
478
480
@@ -500,13 +502,13 @@ pub async fn remove_ingestor(req: HttpRequest) -> Result<impl Responder, PostErr
500
502
. await
501
503
{
502
504
Ok ( _) => {
503
- format ! ( "Node {} Removed Successfully " , domain_name)
505
+ format ! ( "Ingestor {} removed successfully " , domain_name)
504
506
}
505
507
Err ( err) => {
506
508
if matches ! ( err, ObjectStorageError :: IoError ( _) ) {
507
- format ! ( "Node {} Not Found " , domain_name)
509
+ format ! ( "Ingestor {} is not found " , domain_name)
508
510
} else {
509
- format ! ( "Error Removing Node {}\n Reason: {}" , domain_name, err)
511
+ format ! ( "Error removing ingestor {}\n Reason: {}" , domain_name, err)
510
512
}
511
513
}
512
514
} ;
You can’t perform that action at this time.
0 commit comments