You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When my internet keeps disconnecting, the watch will only reconnect once.
To Reproduce
Use watchClient to listen for certain key-value pairs.
client.getWatchClient().watch(ByteSequence.from(prefix.getBytes()),
WatchOption.newBuilder().isPrefix(true).withPrevKV(true).build(),
newWatch.Listener() {
@OverridepublicvoidonNext(WatchResponsewatchResponse) {
// some code
}
@OverridepublicvoidonError(Throwablethrowable) {
// some code
}
@OverridepublicvoidonCompleted() {
// some code
}
});
}
Disconnecting the network connection, lasting for about 1 minute.
At this point, you will find that the watch is disconnected and fails to reconnect, and it will not continue to reconnect.
Expected behavior
The watch can be set to reconnect indefinitely when an onError event occurs.
Additional context
I found that in WatchImpl.java, if the reconnection fails, only a warning log will be printed and it will not continue to reconnect.
Versions
Describe the bug
When my internet keeps disconnecting, the watch will only reconnect once.
To Reproduce
Disconnecting the network connection, lasting for about 1 minute.
At this point, you will find that the watch is disconnected and fails to reconnect, and it will not continue to reconnect.
Expected behavior
The watch can be set to reconnect indefinitely when an onError event occurs.
Additional context
I found that in WatchImpl.java, if the reconnection fails, only a warning log will be printed and it will not continue to reconnect.
The text was updated successfully, but these errors were encountered: