gaoyunhaii opened a new pull request #13249:
URL: https://github.com/apache/flink/pull/13249


   ## What is the purpose of the change
   
   This PR tries to fix the case that when multiple consumer operators are 
connected to the same partitioner node, the partitioner would be shared for 
these consumer operators, thus cause data distributed wrongly. 
   
   To avoid this issue, we always clone the `StreamPartitioner` when creating 
the `StreamGraph` with the Java internal serializer. The clone would always 
success since it is also required to deploy the `StreamGraph` to TaskManagers.
   
   ## Brief change log
   
    - ab39f750b7939b089626da89bd21a29e17d98cc3 clones the `StreamPartitioner` 
for each `StreamEdge`.
   
   
   ## Verifying this change
   
   *(Please pick either of the following options)*
   
   This change added tests and can be verified as follows:
   
    - This change is tested with UT. 
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): **no**
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: **no**
     - The serializers: **no**
     - The runtime per-record code paths (performance sensitive): **no**
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: **no**
     - The S3 file system connector: **no**
   
   ## Documentation
   
     - Does this pull request introduce a new feature? **no**
     - If yes, how is the feature documented? **not applicable**
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to