jgrier commented on a change in pull request #7099: [FLINK-10887] [jobmaster] 
Add source watermark tracking to the JobMaster
URL: https://github.com/apache/flink/pull/7099#discussion_r251964188
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMaster.java
 ##########
 @@ -1000,6 +1005,21 @@ public void notifyAllocationFailure(AllocationID 
allocationID, Exception cause)
                internalFailAllocation(allocationID, cause);
        }
 
+       @Override
+       public CompletableFuture<Object> updateAggregate(String aggregateName, 
Object aggregand, byte[] serializedAggregateFunction)
+               throws IOException, ClassNotFoundException {
+
+               AggregateFunction aggregateFunction = 
InstantiationUtil.deserializeObject(serializedAggregateFunction, 
userCodeLoader);
+
+               Object accumulator = accumulators.get(aggregateName);
 
 Review comment:
   I believe it's already all synchronized.  The RpcService is implemented as 
as a single Akka actor and thus access is already serialized.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to