-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify disk for clean orphaned data and some pretty printing (#121)
* Specify disk for clean orphaned data and some pretty printing * Fix mypy * Review changes * oops
- Loading branch information
1 parent
6b9c5d2
commit b225483
Showing
2 changed files
with
106 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: chadmin data-store commands | ||
|
||
Background: | ||
Given default configuration | ||
And a working s3 | ||
And a working zookeeper | ||
And a working clickhouse on clickhouse01 | ||
And a working clickhouse on clickhouse02 | ||
|
||
Scenario: Check collect clean orphaned data. | ||
When we execute command on clickhouse01 | ||
""" | ||
mkdir -p /var/lib/clickhouse/disks/object_storage/store/123/1234678-f435-49dd-9358-fffc12b758b0 | ||
""" | ||
When we execute command on clickhouse01 | ||
""" | ||
chadmin --format yaml data-store clean-orphaned-tables --store-path /var/lib/clickhouse/disks/object_storage/store | ||
""" | ||
Then we get response contains | ||
""" | ||
- path: /var/lib/clickhouse/disks/object_storage/store/123 | ||
status: not_used | ||
size: 8.0K | ||
removed: false | ||
""" | ||
When we execute command on clickhouse01 | ||
""" | ||
chadmin --format yaml data-store clean-orphaned-tables --store-path /var/lib/clickhouse/disks/object_storage/store --remove | ||
""" | ||
Then we get response contains | ||
""" | ||
- path: /var/lib/clickhouse/disks/object_storage/store/123 | ||
status: not_used | ||
size: 8.0K | ||
removed: true | ||
""" |