revert(sync): 使用checkpoint lock报障message id上报的时候状态稳定

会导致部分hudi表checkpoint时间超长
This reverts commit f0a6dbbb
This commit is contained in:
v-zhangjc9
2024-06-17 18:52:01 +08:00
parent 7f10d53c4e
commit 2be10d8437

View File

@@ -123,7 +123,6 @@ public class PulsarMessageSourceReader extends RichParallelSourceFunction<String
.create()) { .create()) {
String currentValue = null; String currentValue = null;
while (running) { while (running) {
synchronized (context.getCheckpointLock()) {
Message<String> message; Message<String> message;
try { try {
message = reader.readNext(); message = reader.readNext();
@@ -156,10 +155,6 @@ public class PulsarMessageSourceReader extends RichParallelSourceFunction<String
} }
} }
} }
} catch (Throwable exception) {
logger.error(StrUtil.format("Any error ({})", tableMeta.getAlias()), exception);
throw exception;
}
} }
@Override @Override