Skip to content

Commit a06eb6d

Browse files
Fix bucket creation failure due to ramquota.
Change-Id: I91115734760bfc08c6a99234f6a5dc29dc133661 Reviewed-on: https://review.couchbase.org/c/TAF/+/244816 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Balakumaran G <balakumaran.gopal@couchbase.com>
1 parent 958178f commit a06eb6d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

couchbase_utils/backup_utils/backup_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def verify_backup_and_restore(self, bucket_util, cluster, buckets, backup_archiv
112112
self.log.info(f"Skipping continuous restore verification for {bucket.name}: "
113113
f"storage backend is {bucket.storageBackend}, not magma")
114114
continue
115-
restore_bucket_name = f"{bucket.name}_cont_restore_{int(time.time())}"
115+
restore_bucket_name = f"{bucket.name}"
116116
self.log.info(f"Performing continuous restore (PITR) for bucket: {bucket.name}")
117117
self._create_restore_bucket(bucket_util, cluster, restore_bucket_name, bucket)
118118
try:
@@ -165,8 +165,8 @@ def _create_restore_bucket(self, bucket_util, cluster, restore_bucket_name, sour
165165
bucket_type = source_bucket.bucketType
166166
replica = source_bucket.replicaNumber
167167
storage = source_bucket.storageBackend
168-
ram_quota = max(source_bucket.ramQuotaMB, 1024) if storage == Bucket.StorageBackend.magma else source_bucket.ramQuotaMB
169-
168+
ram_quota = source_bucket.ramQuotaMB
169+
bucket_util.delete_bucket(cluster, source_bucket)
170170
bucket_util.create_default_bucket(
171171
cluster,
172172
bucket_name=restore_bucket_name,

0 commit comments

Comments
 (0)