Misleading DEBUG message in Standalone

Description

When Standalone starts, it tosses an error when trying to delete a non-existent directory. This is expected behavior, but the message could be misleading to users.

2015-08-24 23:16:26,981 - DEBUG [main:c.c.c.StandaloneMain@251] - Failed to cleanup temp directory /opt/cdap/sdk-3.1.1/data/tmp java.io.IOException: Not a directory: /opt/cdap/sdk-3.1.1/data/tmp at co.cask.cdap.common.utils.DirUtils.deleteDirectoryContents(DirUtils.java:61) ~[co.cask.cdap.cdap-common-3.1.1.jar:na] at co.cask.cdap.StandaloneMain.cleanupTempDir(StandaloneMain.java:248) [co.cask.cdap.cdap-standalone-3.1.1.jar:na] at co.cask.cdap.StandaloneMain.startUp(StandaloneMain.java:161) [co.cask.cdap.cdap-standalone-3.1.1.jar:na] at co.cask.cdap.StandaloneMain.main(StandaloneMain.java:265) [co.cask.cdap.cdap-standalone-3.1.1.jar:na]

Release Notes

None

Activity

Show:

Priyanka Nambiar September 11, 2015 at 1:59 AM

Moving out of 3.2 release

Sreevatsan Raman August 25, 2015 at 4:48 PM
Edited

We won't have tmp directory all the time. So it is not required to log this. We can attempt to delete it if this directory exists.

Won't Fix
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Components

Priority

Created August 24, 2015 at 11:27 PM
Updated December 9, 2020 at 8:58 PM
Resolved June 9, 2020 at 1:27 AM