You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2020/04/13 16:41:59 UTC

[impala] 03/04: IMPALA-9644: Set core file size 0 in docker entrypoint script

This is an automated email from the ASF dual-hosted git repository.

tarmstrong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit d6f57eb97d11f9c43c8fe09e4ce80f2e2f539ff1
Author: Abhishek Rawat <ar...@cloudera.com>
AuthorDate: Sun Apr 12 01:27:41 2020 -0700

    IMPALA-9644: Set core file size 0 in docker
    entrypoint script
    
    Sets the core file size 0 in the 'daemon_entrypoint.sh'.
    
    Testing (docker container):
    - cat /proc/{pid_impalad}/limits returns core file size 0.
    - forced core dump using 'kill -11' and got message
      'Failed to write core dump. Core dumps have been disabled.'
    
    Change-Id: Icec7cb64bf1226c5b2ca72d048e0aeb8b7dae86d
    Reviewed-on: http://gerrit.cloudera.org:8080/15717
    Reviewed-by: Tim Armstrong <ta...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 docker/daemon_entrypoint.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docker/daemon_entrypoint.sh b/docker/daemon_entrypoint.sh
index d413162..c9d749b 100755
--- a/docker/daemon_entrypoint.sh
+++ b/docker/daemon_entrypoint.sh
@@ -56,4 +56,7 @@ if ! whoami ; then
   cat /etc/passwd
 fi
 
+# Set ulimit core file size 0.
+ulimit -c 0
+
 exec "$@"