yunfengzhou-hub opened a new pull request, #27163:
URL: https://github.com/apache/flink/pull/27163
## What is the purpose of the change
This issue aims to support configuring Model Function's behavior when the
remote requests failed, so as to better adapt to different use cases like
debugging or production.
## Brief change log
Adds support for the following error handling strategies
- retry: Retry sending the request. The retrying behavior is limited by
retry-num, retry-fallback-strategy, retry-backoff-strategy and
retry-backoff-base-interval.
- failover: Throw exceptions and fail the Flink job.
- ignore: Ignore the input that caused the error and continue. The error
itself would be recorded in log.
## Verifying this change
Added unit tests in ModelFunctionErrorHandlingStrategyTest to cover the
newly introduced functions.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): yes
- 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): yes
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? docs
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]