Repository navigation
[improve][broker] The interval of scheduled task should be greater than 0 - #18728
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #18728 +/- ##
============================================
+ Coverage 47.51% 48.01% +0.49%
- Complexity 10520 10664 +144
============================================
Files 698 703 +5
Lines 68079 68795 +716
Branches 7280 7373 +93
============================================
+ Hits 32351 33033 +682
+ Misses 32151 32062 -89
- Partials 3577 3700 +123
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
eolivelli
left a comment
There was a problem hiding this comment.
This patch is basically adding the support for disabling some internal activities in the broker.
This is quite dangerous and can lead to unexpected behavior.
I would prefer to let the broker fail with meaningful errors
9148a13 to
9e8b896
Compare
+1 The Then a clear message will be given and the broker will exit If interval < 0. |
eolivelli
left a comment
There was a problem hiding this comment.
I didn't know that we had declarative validation!
Good work
Lgtm
Motivation
Some scheduled tasks will be started when the broker starting, including:
But the interval of these scheduled tasks should be greater than 0, otherwise an exception will be reported during startup, as below:
Therefore, it is necessary to judge whether the interval is greater than 0 and give clear information, as below:
Modifications
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: