-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Retry Toggle #2770
Comments
Via Google Translate:
Hey @JuchangGit 👋 Thank you for reaching out!
Not sure what you mean by input error. Connect will keep trying to connect to an input until it succeeds or until the process is terminated. That is by design. It's up to the users to leverage either the For outputs, if Connect is able to establish a connection to the output, then it may get an error back. In such cases, you have various meta outputs such as output:
switch:
cases:
- check: metadata("status") == "OK"
output:
fallback:
- your_actual_output: ...
- drop: {} # Feel free to replace this with a dead letter queue output (i.e. `kafka_franz`)
processors:
- cache: Set a key called `status` in an in memory cache indicating that the above output is busted
- output: # This is the catch-all output which is used when `metadata("status") != "OK"`
drop: {} # Feel free to replace this with a dead letter queue output (i.e. `kafka_franz`)
processors:
- cache: # Fetch the `status` key from an in memory cache and set it in a metadata field called `status`
# You can use a TTL when setting the key so it expires after a while and allows the `your_actual_output` to be attempted again after this period lapses.
You have full flexibility as described above. Another approach is to use the |
是否可以为input和output提供一个配置项——最大重试次数 max_retry_num ,默认值为 -1 表示一直重试(和现在的机制一样), 让用户可以控制重试的次数。配置像下面这样:
|
Unfortunately, no, that's not currently possible like I mentioned above:
You can, however, use Streams Mode to have a separate watchdog stream which uses the |
能否添加自动重试的开关或者控制方式,因为bento目前的工作方式是输入和输出错误发生错误时会一直重试下去,这对于有些场景是不适合的。
比如:输入为数据库时,上游如果改变了表结构,那么bento将不断重试,上游可能认为这是恶意攻击
能否添加控制重试的次数或是否自动重试的开关来控制bento的默认行为
The text was updated successfully, but these errors were encountered: