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 * @return MapOptions instance
*/ */
public MapOptions<K, V> writerRetryAttempts(int writerRetryAttempts) { public MapOptions<K, V> writerRetryAttempts(int writerRetryAttempts) {
if (writerRetryAttempts < 0){ if (writerRetryAttempts <= 0){
throw new IllegalArgumentException("writerRetryAttempts must be positive"); throw new IllegalArgumentException("writerRetryAttempts must be bigger than 0");
} }
this.writerRetryAttempts = writerRetryAttempts; this.writerRetryAttempts = writerRetryAttempts;
return this; return this;

Loading…
Cancel
Save