Skip to content

Commit 196959f

Browse files
committed
finish
1 parent 09da138 commit 196959f

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

iotdb-core/confignode/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@
124124
<groupId>jakarta.validation</groupId>
125125
<artifactId>jakarta.validation-api</artifactId>
126126
</dependency>
127-
<dependency>
128-
<groupId>com.google.guava</groupId>
129-
<artifactId>guava</artifactId>
130-
</dependency>
131127
<dependency>
132128
<groupId>org.apache.commons</groupId>
133129
<artifactId>commons-lang3</artifactId>

iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/cache/detector/PhiAccrualDetector.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.apache.iotdb.confignode.manager.load.cache.node.NodeHeartbeatSample;
2525
import org.apache.iotdb.confignode.manager.load.cache.region.RegionHeartbeatSample;
2626

27-
import com.google.common.cache.Cache;
28-
import com.google.common.cache.CacheBuilder;
27+
import com.github.benmanes.caffeine.cache.Cache;
28+
import com.github.benmanes.caffeine.cache.Caffeine;
2929
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
3030
import org.apache.tsfile.utils.Preconditions;
3131
import org.slf4j.Logger;
@@ -66,8 +66,7 @@ public PhiAccrualDetector(
6666
this.minHeartbeatStdNs = minHeartbeatStdNs;
6767
this.codeStartSampleCount = minimalSampleCount;
6868
this.fallbackDuringColdStart = fallbackDuringColdStart;
69-
this.availibilityCache =
70-
CacheBuilder.newBuilder().expireAfterAccess(5, TimeUnit.MINUTES).build();
69+
this.availibilityCache = Caffeine.newBuilder().expireAfterAccess(5, TimeUnit.MINUTES).build();
7170
}
7271

7372
@Override

0 commit comments

Comments
 (0)