You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@crail.apache.org by pe...@apache.org on 2019/08/05 09:43:03 UTC
[incubator-crail] branch master updated: [NVMf] Make keepalive
thread a daemon thread
This is an automated email from the ASF dual-hosted git repository.
pepperjo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-crail.git
The following commit(s) were added to refs/heads/master by this push:
new db631dd [NVMf] Make keepalive thread a daemon thread
db631dd is described below
commit db631dd94cf83408ad6c579d405ba9bde098cf3b
Author: Jonas Pfefferle <pe...@apache.org>
AuthorDate: Wed Jun 26 09:47:38 2019 +0200
[NVMf] Make keepalive thread a daemon thread
Daemonize the keepalive thread to allow applications to
exit when the main method returns without closing the
storage client explicitly. For example, Spark has this
requirement.
https://issues.apache.org/jira/browse/CRAIL-98
Signed-off-by: Jonas Pfefferle <pe...@apache.org>
---
.../src/main/java/org/apache/crail/storage/nvmf/NvmfStorageClient.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/storage-nvmf/src/main/java/org/apache/crail/storage/nvmf/NvmfStorageClient.java b/storage-nvmf/src/main/java/org/apache/crail/storage/nvmf/NvmfStorageClient.java
index 815b62d..4f5b06a 100644
--- a/storage-nvmf/src/main/java/org/apache/crail/storage/nvmf/NvmfStorageClient.java
+++ b/storage-nvmf/src/main/java/org/apache/crail/storage/nvmf/NvmfStorageClient.java
@@ -65,6 +65,7 @@ public class NvmfStorageClient implements StorageClient {
}
}
});
+ this.keepAliveThread.setDaemon(true);
}
boolean isAlive() {