You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
For the same pushTask, the com.alibaba.nacos.naming.push.v2.executor.PushExecutor#doPushWithCallback method will not retry forever after onFail, but will only retry the default number of times.
When the same pushTask fails and retries the default number of doPush times, the task will not be added back to the delayTaskEngine's task queue. In this way, you can avoid repeatedly pushing invalid tasks that are destined to fail, and you can even avoid the problem of server OOM exceptions caused by a large number of invalid tasks that cannot be successfully removed.
Describe the solution you'd like
DoPushWithCallback will retry after failing to push the same task. If the task fails every retry, it will retry forever. This will waste resources on invalid tasks that are bound to fail, and at the same time, when a large number of invalid tasks appear, it will cause the server to OOM.
After doPushWithCallback fails to push the same task, it will only perform the default number of retries. After the default number of times is exceeded, even if the task still fails to be pushed, it will not be added to the task queue.
Describe alternatives you've considered
After doPushWithCallback fails to push the same task, it will only perform the default number of retries. After the default number of times is exceeded, even if the task still fails to be pushed, it will not be added to the task queue.
Users can customize the number of retries. If not configured, the default value will be used. The default value is 3.
When the number of times configured by the user is -1, it is consistent with the logic of the current version. If the task push fails, it will keep retrying until the task push succeeds.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
For the same pushTask, the com.alibaba.nacos.naming.push.v2.executor.PushExecutor#doPushWithCallback method will not retry forever after onFail, but will only retry the default number of times.
When the same pushTask fails and retries the default number of doPush times, the task will not be added back to the delayTaskEngine's task queue. In this way, you can avoid repeatedly pushing invalid tasks that are destined to fail, and you can even avoid the problem of server OOM exceptions caused by a large number of invalid tasks that cannot be successfully removed.
Describe the solution you'd like
DoPushWithCallback will retry after failing to push the same task. If the task fails every retry, it will retry forever. This will waste resources on invalid tasks that are bound to fail, and at the same time, when a large number of invalid tasks appear, it will cause the server to OOM.
After doPushWithCallback fails to push the same task, it will only perform the default number of retries. After the default number of times is exceeded, even if the task still fails to be pushed, it will not be added to the task queue.
Describe alternatives you've considered
After doPushWithCallback fails to push the same task, it will only perform the default number of retries. After the default number of times is exceeded, even if the task still fails to be pushed, it will not be added to the task queue.
Users can customize the number of retries. If not configured, the default value will be used. The default value is 3.
When the number of times configured by the user is -1, it is consistent with the logic of the current version. If the task push fails, it will keep retrying until the task push succeeds.
The text was updated successfully, but these errors were encountered: