Youngwb commented on a change in pull request #5336: URL: https://github.com/apache/incubator-doris/pull/5336#discussion_r585515502
########## File path: extension/spark-doris-connector/src/main/scala/org/apache/doris/spark/rdd/ScalaValueReader.scala ########## @@ -46,6 +47,9 @@ class ScalaValueReader(partition: PartitionDefinition, settings: Settings) { protected val logger = Logger.getLogger(classOf[ScalaValueReader]) protected val client = new BackendClient(new Routing(partition.getBeAddress), settings) + protected val clientLock = + if (deserializeArrowToRowBatchAsync) new ReentrantLock() Review comment: I have a question, deserializeArrowToRowBatchAsync is init below, whether the use is valid here ########## File path: extension/spark-doris-connector/src/main/scala/org/apache/doris/spark/rdd/ScalaValueReader.scala ########## @@ -46,6 +47,9 @@ class ScalaValueReader(partition: PartitionDefinition, settings: Settings) { protected val logger = Logger.getLogger(classOf[ScalaValueReader]) protected val client = new BackendClient(new Routing(partition.getBeAddress), settings) + protected val clientLock = + if (deserializeArrowToRowBatchAsync) new ReentrantLock() Review comment: I have a question, **deserializeArrowToRowBatchAsync** is init below, whether the use is valid here ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org