Skip to content

Commit

Permalink
double confirm before delete all the ununsed segmensts (apache#10581)
Browse files Browse the repository at this point in the history
Co-authored-by: yuezhang <[email protected]>
  • Loading branch information
zhangyue19921010 and yuezhang authored Nov 19, 2020
1 parent d7d2c80 commit abb03d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web-console/src/views/datasource-view/datasource-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}'?`}
Expand Down

0 comments on commit abb03d3

Please sign in to comment.