You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "bowenliang123 (via GitHub)" <gi...@apache.org> on 2023/02/14 14:36:46 UTC
[GitHub] [kyuubi] bowenliang123 commented on a diff in pull request #4300: [KYUUBI #4282] Fix ConcurrentModificationException when log4j2 async enabled
bowenliang123 commented on code in PR #4300:
URL: https://github.com/apache/kyuubi/pull/4300#discussion_r1105908257
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/BatchesResource.scala:
##########
@@ -318,12 +319,16 @@ private[v1] class BatchesResource extends ApiRequestContext with Logging {
Option(sessionManager.getBatchSessionImpl(sessionHandle)).map { batchSession =>
try {
val submissionOp = batchSession.batchJobSubmissionOp
- val rowSet = submissionOp.getOperationLogRowSet(
- FetchOrientation.FETCH_NEXT,
- from,
- size)
- val logRowSet = rowSet.getColumns.get(0).getStringVal.getValues.asScala
- new OperationLog(logRowSet.asJava, logRowSet.size)
+ val rowSet = submissionOp.getOperationLogRowSet(FetchOrientation.FETCH_NEXT, from, size)
+ val columns = rowSet.getColumns
+ val logRowSet: util.List[String] =
+ if (columns == null || columns.size == 0) {
+ Collections.emptyList()
+ } else {
Review Comment:
```suggestion
val logRowSet = if (CollectionUtils.isEmpty(columns)) {
Collections.emptyList[String]()
} else {
```
--
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org