GemFire: Exported logs getting stored in /tmp
search cancel

GemFire: Exported logs getting stored in /tmp

book

Article ID: 294466

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

Under rare conditions, when we run the "gfsh export logs" command, log files are getting stored in the target directory and in "/tmp" as well.

Environment

Product Version: 9.x, 10.x
OS: Linux

Resolution

Basically, the GemFire gfsh export logs command will utilize the "java.io.tmpdir" system parameter setting such as "java.io.tmpdir=/tmp" in Linux as an export file handling working directory. GemFire will delete temporary files under ""java.io.tmpdir"" after the export zip file copies to the target directory.

If logs still exist in the tmpdir folder, there may be several possibilities for this:

1. The Linux user's permission may be changed during this period.
2. The JVM failed to remove the log files under tmpdir due to a failure to get tmpdir log files handler which may relate to a Linux env or JDK version bug.