You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by AsterixDB Code Review <do...@asterix-gerrit.ics.uci.edu> on 2024/09/03 16:05:14 UTC
Change in asterixdb[master]: [NO ISSUE][WIP]: Cleanup on cloud disk caching
From Hussain Towaileb <hu...@gmail.com>:
Hussain Towaileb has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18786 )
Change subject: [NO ISSUE][WIP]: Cleanup on cloud disk caching
......................................................................
[NO ISSUE][WIP]: Cleanup on cloud disk caching
Change-Id: Ic7b9605b704889836674f8d62a6c8dea86e7df52
---
M hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/cache/unit/AbstractIndexUnit.java
M hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/filesystem/PhysicalDrive.java
2 files changed, 14 insertions(+), 5 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/86/18786/1
diff --git a/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/cache/unit/AbstractIndexUnit.java b/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/cache/unit/AbstractIndexUnit.java
index 1532340..54ea23c 100644
--- a/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/cache/unit/AbstractIndexUnit.java
+++ b/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/cache/unit/AbstractIndexUnit.java
@@ -36,7 +36,7 @@
public final void open() {
lastAccessTime.set(System.nanoTime());
- openCounter.get();
+ openCounter.incrementAndGet();
}
public final void close() {
diff --git a/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/filesystem/PhysicalDrive.java b/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/filesystem/PhysicalDrive.java
index 7010e88..0212dfd 100644
--- a/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/filesystem/PhysicalDrive.java
+++ b/hyracks-fullstack/hyracks/hyracks-cloud/src/main/java/org/apache/hyracks/cloud/filesystem/PhysicalDrive.java
@@ -58,12 +58,12 @@
boolean isPressured = usedSpace > pressureCapacity;
this.usedSpace.set(usedSpace);
- if (isPressured) {
- LOGGER.info("Used space: {}, pressureCapacity: {} (isPressured: {})",
+ if (usedSpace >= diskSpace.getAllocatedCapacity()) {
+ LOGGER.warn("Allocated disk space has been exceeded. Used space: {}, pressureCapacity: {} (isPressured: {})",
StorageUtil.toHumanReadableSize(usedSpace), StorageUtil.toHumanReadableSize(pressureCapacity),
true);
- } else if (usedSpace >= diskSpace.getAllocatedCapacity()) {
- LOGGER.warn("Allocated disk space has been exceeded. Used space: {}, pressureCapacity: {}",
+ } else if (isPressured) {
+ LOGGER.info("Used space: {}, pressureCapacity: {} (isPressured: {})",
StorageUtil.toHumanReadableSize(usedSpace), StorageUtil.toHumanReadableSize(pressureCapacity),
true);
} else {
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18786
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: Ic7b9605b704889836674f8d62a6c8dea86e7df52
Gerrit-Change-Number: 18786
Gerrit-PatchSet: 1
Gerrit-Owner: Hussain Towaileb <hu...@gmail.com>
Gerrit-MessageType: newchange