[ 
https://issues.apache.org/jira/browse/FLINK-35896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868631#comment-17868631
 ] 

yuanfenghu commented on FLINK-35896:
------------------------------------

When an exception occurs in ScalingRealizer.realizeParallelismOverrides, I 
encountered this issue locally, but I couldn't retrieve this exception from the 
eventhandler table. The first approach is to catch it in JobAutoScalerImpl.
{code:java}
//代码占位符
try {
scalingRealizer.realizeParallelismOverrides(ctx, userOverrides);
} catch (Exception e) {
eventHandler.handleException(ctx, AUTOSCALER_ERROR, e);
} {code}
The other approach is to handle it separately in RescaleApiScalingRealizer, but 
I prefer the former

 

> eventHandler in RescaleApiScalingRealizer  handle the event of scaling failure
> ------------------------------------------------------------------------------
>
>                 Key: FLINK-35896
>                 URL: https://issues.apache.org/jira/browse/FLINK-35896
>             Project: Flink
>          Issue Type: Improvement
>          Components: Autoscaler
>    Affects Versions: 2.0.0
>            Reporter: yuanfenghu
>            Priority: Minor
>
> When using flink-autoscaler-standalone, if fail during the Scaling process, 
> need to handle the failure event through evenhandler
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to