loserwang1024 commented on code in PR #2714:
URL: https://github.com/apache/fluss/pull/2714#discussion_r2851155072
##########
fluss-flink/fluss-flink-common/src/main/java/org/apache/fluss/flink/source/enumerator/FlinkSourceEnumerator.java:
##########
@@ -1054,10 +1071,21 @@ public void notifyCheckpointComplete(long checkpointId)
throws Exception {
.releaseSnapshots(consumedKvSnapshots)
.get();
} catch (Exception e) {
- LOG.error("Failed to release kv snapshot lease. These snapshot
need to re-enqueue", e);
- // use the current checkpoint id to re-enqueue the buckets
- consumedKvSnapshots.forEach(
- tableBucket -> addConsumedBucket(checkpointId,
tableBucket));
+ if (ExceptionUtils.findThrowable(e,
UnsupportedVersionException.class).isPresent()) {
+ LOG.warn(
+ "Failed to release kv snapshot lease because the
server does not support "
+ + "kv snapshot lease API. Snapshots may remain
in storage longer "
+ + "than necessary. Please upgrade the Fluss
server to version 0.10 "
Review Comment:
```suggestion
Please upgrade the Fluss server to version
0.9 "
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]