Skip to content

Commit ca132c4

Browse files
author
chengyitian
committed
AJ-991: throw exception when timeout <=0 for 'appendEventWithResponse' in EventSender;
1 parent da55d88 commit ca132c4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/com/xxdb/streaming/client/cep/EventSender.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public BasicDictionary appendEventWithResponse(String engine, String eventType,
5757
if (attributes == null)
5858
throw new IllegalArgumentException("attributes cannot be null.");
5959
if (timeout <= 0) {
60-
log.warn("The param 'timeout' cannot be less than or equal to 0, the default value of 5000 will be used.");
61-
timeout = 5000;
60+
throw new IllegalArgumentException("The param 'timeout' cannot be less than or equal to 0, the default value of 5000 will be used.");
6261
}
6362

6463
StringBuilder errMsg = new StringBuilder();

0 commit comments

Comments
 (0)