From 5e7d94b658dc224aee42aa97f2c01aa9c8fef851 Mon Sep 17 00:00:00 2001 From: Sumit Agrawal Date: Wed, 14 Aug 2024 17:04:12 +0530 Subject: [PATCH] fix old volume quota update for all --- .../org/apache/hadoop/ozone/om/service/QuotaRepairTask.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/QuotaRepairTask.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/QuotaRepairTask.java index b5be58d21f15..e72de5ebd49d 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/QuotaRepairTask.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/QuotaRepairTask.java @@ -184,7 +184,11 @@ private void repairActiveDb( } // update volume to support quota - builder.setSupportVolumeOldQuota(true); + if (buckets.isEmpty()) { + builder.setSupportVolumeOldQuota(true); + } else { + builder.setSupportVolumeOldQuota(false); + } } private OzoneManagerProtocolProtos.OMResponse submitRequest(