This is an automated email from the ASF dual-hosted git repository.

capistrant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new abb03d3  double confirm before delete all the ununsed segmensts 
(#10581)
abb03d3 is described below

commit abb03d38b07624f1b875c4f9e73b9118200fb035
Author: zhangyue19921010 <[email protected]>
AuthorDate: Fri Nov 20 00:07:52 2020 +0800

    double confirm before delete all the ununsed segmensts (#10581)
    
    Co-authored-by: yuezhang <[email protected]>
---
 web-console/src/views/datasource-view/datasource-view.tsx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/web-console/src/views/datasource-view/datasource-view.tsx 
b/web-console/src/views/datasource-view/datasource-view.tsx
index effd3d1..8b7e7f8 100644
--- a/web-console/src/views/datasource-view/datasource-view.tsx
+++ b/web-console/src/views/datasource-view/datasource-view.tsx
@@ -576,6 +576,10 @@ GROUP BY 1`;
         onSuccess={() => {
           this.datasourceQueryManager.rerunLastQuery();
         }}
+        warningChecks={[
+          `I understand that this operation will delete all metadata about the 
unused segments of ${killDatasource} and removes them from deep storage.`,
+          'I understand that this operation cannot be undone.',
+        ]}
       >
         <p>
           {`Are you sure you want to permanently delete unused segments in 
'${killDatasource}'?`}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to