mirror of
https://github.com/pgsty/minio.git
synced 2026-11-11 01:55:30 +03:00
test(ilm): check the purge's history error end to end
The implementation review of the delete-all reporting found that no committed test checked the error a purge returns on a drive whose metadata does not decode: restoring the old read quorum error passed. TestPurgeAllVersionsRefusesCorruptDrive now sends the purge through DeleteObject and checks errDeleteAllHistoryUnavailable and its SlowDownWrite mapping; with the old error it fails. The HELP text of expiry_incomplete_total now says that the tier_unsupported_skipped reason counts the scanner's per-drive observations, not expiry attempts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Feng Ruohang <rh@vonng.com>
This commit is contained in:
+1
-1
@@ -2143,7 +2143,7 @@ func getILMNodeMetrics() *MetricsGroupV2 {
|
||||
Namespace: nodeMetricNamespace,
|
||||
Subsystem: ilmSubsystem,
|
||||
Name: expiryIncompleteTotal,
|
||||
Help: "Total number of ILM expiry attempts since server start that ended without removing what they addressed, by reason",
|
||||
Help: "Total number of ILM expiry attempts since server start that ended without removing what they addressed, by reason; tier_unsupported_skipped counts the scanner's per-drive observations of an expiry of all versions it did not queue",
|
||||
Type: counterMetric,
|
||||
},
|
||||
VariableLabels: map[string]string{"reason": reason},
|
||||
|
||||
Reference in New Issue
Block a user