We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b691c commit 87c4605Copy full SHA for 87c4605
client/lookout-reg-server/src/main/java/com/alipay/lookout/remote/report/poller/PollerController.java
@@ -240,6 +240,7 @@ public void destroy() {
240
* @param newSlotCount
241
*/
242
public synchronized void update(long newStep, int newSlotCount) {
243
+ Preconditions.checkArgument(newStep >= 0, "step must greater than 0");
244
setSlotCount(newSlotCount);
245
setStep(newStep);
246
registry.setStep(newStep);
0 commit comments