bogao007 commented on code in PR #48884:
URL: https://github.com/apache/spark/pull/48884#discussion_r1847385442
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/python/TransformWithStateInPandasStateServer.scala:
##########
@@ -758,3 +760,12 @@ case class MapStateInfo(
keySerializer: ExpressionEncoder.Serializer[Row],
valueDeserializer: ExpressionEncoder.Deserializer[Row],
valueSerializer: ExpressionEncoder.Serializer[Row])
+
+object TransformWithStateInPandasStateServer {
+ @volatile private var id = 0
Review Comment:
There's no much difference comparing to TCP socket. For UDS, we create
socket files (we use different ports for TCP) for each server thread
connection, and the files are named with different `serverId` which got updated
incrementally. At the end we do cleanup to delete these socket files.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]