You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/12/29 08:05:02 UTC

[GitHub] [hbase] pankaj72981 commented on a change in pull request #2824: HBASE-25447 remoteProc is suspended due to OOM ERROR

pankaj72981 commented on a change in pull request #2824:
URL: https://github.com/apache/hbase/pull/2824#discussion_r549604769



##########
File path: hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/RemoteProcedureDispatcher.java
##########
@@ -306,15 +315,22 @@ public TimeoutExecutorThread() {
     @Override
     public void run() {
       while (running.get()) {
-        final DelayedWithTimeout task = DelayedUtil.takeWithoutInterrupt(queue);
-        if (task == null || task == DelayedUtil.DELAYED_POISON) {
-          // the executor may be shutting down, and the task is just the shutdown request
-          continue;
-        }
-        if (task instanceof DelayedTask) {
-          threadPool.execute(((DelayedTask) task).getObject());
-        } else {
-          ((BufferNode) task).dispatch();
+        try {
+          final DelayedWithTimeout task = DelayedUtil.takeWithoutInterrupt(queue);
+          if (task == null || task == DelayedUtil.DELAYED_POISON) {
+            // the executor may be shutting down, and the task is just the shutdown request
+            continue;
+          }
+          if (task instanceof DelayedTask) {
+            threadPool.execute(((DelayedTask) task).getObject());
+          } else {
+            ((BufferNode) task).dispatch();
+          }
+        } catch (Throwable e) {
+          LOG.error("Caught error", e);
+          if (timeoutExecutorError != null) {

Review comment:
       Should we abort for all exception or only for OOM?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org