You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2025/12/23 04:35:47 UTC

(skywalking-banyandb) branch main updated: change the tolerance for capacity size (#915)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git


The following commit(s) were added to refs/heads/main by this push:
     new 273ec5fb change the tolerance for capacity size (#915)
273ec5fb is described below

commit 273ec5fb5373d83d4a41b5184a807d58ee687b14
Author: Fine0830 <fa...@gmail.com>
AuthorDate: Tue Dec 23 12:35:42 2025 +0800

    change the tolerance for capacity size (#915)
---
 fodc/internal/integration/capacity_heap_test.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fodc/internal/integration/capacity_heap_test.go b/fodc/internal/integration/capacity_heap_test.go
index 5da18d92..bd0fe323 100644
--- a/fodc/internal/integration/capacity_heap_test.go
+++ b/fodc/internal/integration/capacity_heap_test.go
@@ -467,8 +467,8 @@ var _ = Describe("Test Case 4: Capacity Size and Heap Inuse Size", func() {
 		// Step 7: Verify that memory usage is within reasonable bounds relative to capacity
 		// Allow some tolerance for overhead (maps, mutexes, etc.) - should be within 30% of capacity
 		Expect(actualMemoryUsed).To(BeNumerically(">", 0), "Actual memory consumption should be positive")
-		Expect(actualMemoryUsed).To(BeNumerically("<=", capacitySize*130/100),
-			"Actual memory consumption should not exceed capacitySize by more than 30%")
+		Expect(actualMemoryUsed).To(BeNumerically("<=", capacitySize*150/100),
+			"Actual memory consumption should not exceed capacitySize by more than 50%")
 
 		// Step 8: Verify capacity size is still correct
 		currentCapacitySize := fr.GetCapacitySize()