Browse Source

[hdfs] Improve log message for left-over temporary file during upload op (#3843)

Harsh Gupta 1 year ago
parent
commit
08ca92ca38
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/upload.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/upload.py

@@ -198,7 +198,7 @@ class HDFStemporaryUploadedFile(object):
     if self._do_cleanup:
     if self._do_cleanup:
       # Do not do cleanup here. It's hopeless. The self._fs threadlocal states
       # Do not do cleanup here. It's hopeless. The self._fs threadlocal states
       # are going to be all wrong.
       # are going to be all wrong.
-      LOG.error("Left-over upload file is not cleaned up: %s" % (self._path,))
+      LOG.debug(f"Check for left-over upload file for cleanup if the upload op was unsuccessful: {self._path}")
 
 
   def get_temp_path(self):
   def get_temp_path(self):
     return self._path
     return self._path