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 2025/04/07 15:19:28 UTC
Change in asterixdb[neo]: [NO ISSUE]: Extra logging on interrupts
From Hussain Towaileb <hu...@gmail.com>:
Hussain Towaileb has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19625 )
Change subject: [NO ISSUE]: Extra logging on interrupts
......................................................................
[NO ISSUE]: Extra logging on interrupts
Ext-ref: MB-65953
Change-Id: I6ec3d2f59fc34e7d7e959f4693f3f7a3089e7ccf
---
M hyracks-fullstack/algebricks/algebricks-common/src/main/java/org/apache/hyracks/algebricks/common/exceptions/AlgebricksException.java
M hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/exceptions/HyracksException.java
2 files changed, 18 insertions(+), 0 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/25/19625/1
diff --git a/hyracks-fullstack/algebricks/algebricks-common/src/main/java/org/apache/hyracks/algebricks/common/exceptions/AlgebricksException.java b/hyracks-fullstack/algebricks/algebricks-common/src/main/java/org/apache/hyracks/algebricks/common/exceptions/AlgebricksException.java
index a513dd3..10e961b 100644
--- a/hyracks-fullstack/algebricks/algebricks-common/src/main/java/org/apache/hyracks/algebricks/common/exceptions/AlgebricksException.java
+++ b/hyracks-fullstack/algebricks/algebricks-common/src/main/java/org/apache/hyracks/algebricks/common/exceptions/AlgebricksException.java
@@ -27,9 +27,12 @@
import org.apache.hyracks.api.exceptions.IFormattedException;
import org.apache.hyracks.api.exceptions.SourceLocation;
import org.apache.hyracks.api.util.ErrorMessageUtil;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
public class AlgebricksException extends Exception implements IFormattedException {
private static final long serialVersionUID = 2L;
+ private static final Logger LOGGER = LogManager.getLogger();
public static final int UNKNOWN = 0;
private final String component;
@@ -91,6 +94,7 @@
this.params = params;
if (cause instanceof InterruptedException) {
+ LOGGER.debug("Re-interrupting Thread. {}", String.valueOf(this));
Thread.currentThread().interrupt();
}
}
diff --git a/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/exceptions/HyracksException.java b/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/exceptions/HyracksException.java
index b12c8df..347c620 100644
--- a/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/exceptions/HyracksException.java
+++ b/hyracks-fullstack/hyracks/hyracks-api/src/main/java/org/apache/hyracks/api/exceptions/HyracksException.java
@@ -23,9 +23,12 @@
import java.util.Optional;
import org.apache.hyracks.api.util.ErrorMessageUtil;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
public class HyracksException extends IOException implements IFormattedException {
private static final long serialVersionUID = 2L;
+ private static final Logger LOGGER = LogManager.getLogger();
public static final int UNKNOWN = 0;
private final String component;
@@ -81,6 +84,7 @@
this.params = params;
if (cause instanceof InterruptedException) {
+ LOGGER.debug("Re-interrupting Thread. {}", String.valueOf(this));
Thread.currentThread().interrupt();
}
}
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/19625
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings
Gerrit-Project: asterixdb
Gerrit-Branch: neo
Gerrit-Change-Id: I6ec3d2f59fc34e7d7e959f4693f3f7a3089e7ccf
Gerrit-Change-Number: 19625
Gerrit-PatchSet: 1
Gerrit-Owner: Hussain Towaileb <hu...@gmail.com>
Gerrit-MessageType: newchange