From b9dd399697c3ecca9ec4f08900f806d4bfc1be1c Mon Sep 17 00:00:00 2001 From: ZhongJinHacker Date: Thu, 15 Sep 2022 09:40:37 +0800 Subject: [PATCH] Fix incorrect code description in sliding window logic of LeapArray (#2876) * The "clean" logic has been removed in earlier version --- .../alibaba/csp/sentinel/slots/statistic/base/LeapArray.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java index 32b854e8..e67b40e9 100755 --- a/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java +++ b/sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots/statistic/base/LeapArray.java @@ -127,7 +127,7 @@ public abstract class LeapArray { * * (1) Bucket is absent, then just create a new bucket and CAS update to circular array. * (2) Bucket is up-to-date, then just return the bucket. - * (3) Bucket is deprecated, then reset current bucket and clean all deprecated buckets. + * (3) Bucket is deprecated, then reset current bucket. */ while (true) { WindowWrap old = array.get(idx);