turboFei commented on code in PR #2637:
URL: https://github.com/apache/celeborn/pull/2637#discussion_r1683916667
##########
service/src/main/scala/org/apache/celeborn/server/common/http/api/v1/ApiV1BaseResource.scala:
##########
@@ -51,7 +52,7 @@ class ApiV1BaseResource extends ApiRequestContext {
.threadName(threadStack.threadName)
.threadState(threadStack.threadState.toString)
.stackTrace(threadStack.stackTrace.elems.asJava)
-
.blockedByThreadId(threadStack.blockedByThreadId.getOrElse(null.asInstanceOf[Long]):
Long)
+
.blockedByThreadId(threadStack.blockedByThreadId.getOrElse(null).asInstanceOf[java.lang.Long])
Review Comment:
```
scala> null.asInstanceOf[Long]
val res2: Long = 0
scala> None.getOrElse(null).asInstanceOf[java.lang.Long]
val res3: Long = null
```
--
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]