Support retry for WRITE_THROUGH and WRITE_BEHIND: correct exception msg

Signed-off-by: zzhlhc <zhouzh_zzz@qq.com>
pull/5294/head
zzhlhc 1 year ago
parent 57fd69231b
commit afa91e25be

@ -178,8 +178,8 @@ public class MapOptions<K, V> {
* @return MapOptions instance
*/
public MapOptions<K, V> writerRetryAttempts(int writerRetryAttempts) {
if (writerRetryAttempts < 0){
throw new IllegalArgumentException("writerRetryAttempts must be positive");
if (writerRetryAttempts <= 0){
throw new IllegalArgumentException("writerRetryAttempts must be bigger than 0");
}
this.writerRetryAttempts = writerRetryAttempts;
return this;

Loading…
Cancel
Save