-
Hi, all In my cases, This happened after restarting kyuubi-server and PV is not set for Errors are very similar like #4986, but happens when reader.close() not delete Also, when this happened, all other server logs are muted. I try to quick fix to ignore NoSuchFileException in the private def trySafely(f: => Unit): Unit = {
try {
f
} catch {
case _: NoSuchFileException =>
case e: IOException =>
// Printing log here may cause a deadlock. The lock order of OperationLog.write
// is RootLogger -> LogDivertAppender -> OperationLog. If printing log here, the
// lock order is OperationLog -> RootLogger. So the exception is thrown and
// processing at the invocations
throw new IOException(
s"Failed to remove corresponding log file of operation: ${path.toAbsolutePath}",
e)
}
} This fix works for me, but I think more reliable way. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @minyk, this change looks promising, would you please file a Pull request? |
Beta Was this translation helpful? Give feedback.
@yaooqinn ok, I'll make the issue and PR. Thank you