You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "yuanfenghu (Jira)" <ji...@apache.org> on 2024/07/25 10:24:00 UTC

[jira] [Comment Edited] (FLINK-35896) eventHandler in RescaleApiScalingRealizer handle the event of scaling failure

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

yuanfenghu edited comment on FLINK-35896 at 7/25/24 10:23 AM:
--------------------------------------------------------------

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

 


was (Author: JIRAUSER296932):
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)