You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "pan3793 (via GitHub)" <gi...@apache.org> on 2023/06/19 05:20:13 UTC

[GitHub] [incubator-celeborn] pan3793 commented on pull request #1602: [CELEBORN-691] Fix UnsupportedOperationException when stop worker wit…

pan3793 commented on PR #1602:
URL: https://github.com/apache/incubator-celeborn/pull/1602#issuecomment-1596523574

   I think we should assume the producer always produces unmodified collections, and handle this case on the consumer side.
   
   ```patch
   class WorkerInfo(
       val host: String,
       val rpcPort: Int,
       val pushPort: Int,
       val fetchPort: Int,
       val replicatePort: Int,
   -   val diskInfos: util.Map[String, DiskInfo],
   +   _diskInfos: util.Map[String, DiskInfo],
       val userResourceConsumption: util.Map[UserIdentifier, ResourceConsumption],
       var endpoint: RpcEndpointRef) extends Serializable with Logging {
   +
   +   val diskInfos = new util.HashMap[String, DiskInfo](_diskInfos)
   ```


-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org