revert(sync): 使用checkpoint lock报障message id上报的时候状态稳定
会导致部分hudi表checkpoint时间超长
This reverts commit f0a6dbbb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user