ulysses-you commented on a change in pull request #1136:
URL: https://github.com/apache/incubator-kyuubi/pull/1136#discussion_r714421611



##########
File path: 
kyuubi-common/src/main/scala/org/apache/kyuubi/events/JsonEventLogger.scala
##########
@@ -75,7 +75,13 @@ class JsonEventLogger[T <: KyuubiEvent](logName: String,
   }
 
   private def requireLogRootWritable(): Unit = {
-    val fileStatus = fs.getFileStatus(new Path(logRoot))
+    val fileStatus = try {
+      fs.getFileStatus(new Path(logRoot))
+    } catch {
+      case e: IOException =>
+        error(s"Get log directory $logRoot failed", e)

Review comment:
       what's the behavior before, do you mean we cannot log the exception ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to