Skip to content

[feature][PES][datasource] implement starrocks task retry mechanism#5386

Merged
casionone merged 2 commits intoapache:dev-1.9.0from
aiceflower:relaese-1.9.0-starrocks-sup-retry
Mar 26, 2026
Merged

[feature][PES][datasource] implement starrocks task retry mechanism#5386
casionone merged 2 commits intoapache:dev-1.9.0from
aiceflower:relaese-1.9.0-starrocks-sup-retry

Conversation

@aiceflower
Copy link
Member

@aiceflower aiceflower commented Mar 26, 2026

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Problem Description

StarRocks tasks lack retry mechanism for handling transient failures.

Description

Implement StarRocks task retry mechanism to automatically retry failed tasks.

Use case

When StarRocks tasks fail due to transient errors (network issues, temporary overload), the system can automatically retry instead of failing immediately.

Solutions

Implemented StarRocks task retry mechanism with configurable retry count and interval.

Anything else

None.

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

- 引入ComputationEngineUtils工具类,提供向entrance发送消息的功能
- 添加配置项支持上下文语句和JDBC SET语句的错误索引调整
- 实现任务重试逻辑,支持JDBC和aiSQL类型的断点续跑
- 优化结果集别名数量管理,确保重试时状态正确恢复
- 新增TaskRetryInterceptor拦截器,动态为任务添加重试开关
- 增强错误处理机制,支持多种错误场景的正则匹配重试
- 修复任务重试时结果目录重复创建的问题
- 扩展ResponseTaskStatusWithExecuteCodeIndex协议,增加aliasNum字段
- 优化JDBC任务重试时的SQL索引调整逻辑,处理SET语句场景
- 增加StarRocks引擎类型支持和相关配置选项
@aiceflower aiceflower changed the title [feat][PES][datasource] implement StarRocks task retry mechanism [feature][PES][datasource] implement StarRocks task retry mechanism Mar 26, 2026
@aiceflower aiceflower changed the title [feature][PES][datasource] implement StarRocks task retry mechanism [feature][pes][datasource] implement starrocks task retry mechanism Mar 26, 2026
@aiceflower aiceflower changed the title [feature][pes][datasource] implement starrocks task retry mechanism [feature][PES][datasource] implement starrocks task retry mechanism Mar 26, 2026
Copy link
Contributor

@casionone casionone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@casionone casionone merged commit 6085ce7 into apache:dev-1.9.0 Mar 26, 2026
5 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants