This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new fd3dc8a HDDS-2576. Handle InterruptedException in ratis related files
fd3dc8a is described below
commit fd3dc8aee5a39d4b0d387732fa6ede1c1b5df62d
Author: Daniel del valle <[email protected]>
AuthorDate: Tue May 12 13:16:44 2020 +0200
HDDS-2576. Handle InterruptedException in ratis related files
Closes #809
---
.../org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java
index 4e3f9e5..c968efb 100644
---
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java
+++
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerDoubleBuffer.java
@@ -336,6 +336,9 @@ public final class OzoneManagerDoubleBuffer {
/**
* Stop OM DoubleBuffer flush thread.
*/
+ // Ignore the sonar false positive on the InterruptedException issue
+ // as this a normal flow of a shutdown.
+ @SuppressWarnings("squid:S2142")
public void stop() {
if (isRunning.compareAndSet(true, false)) {
LOG.info("Stopping OMDoubleBuffer flush thread");
@@ -344,7 +347,7 @@ public final class OzoneManagerDoubleBuffer {
// Wait for daemon thread to exit
daemon.join();
} catch (InterruptedException e) {
- LOG.error("Interrupted while waiting for daemon to exit.");
+ LOG.debug("Interrupted while waiting for daemon to exit.", e);
}
// stop metrics.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]