Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,11 @@ private TPipeConsensusTransferResp handleTransferFileSeal(final PipeConsensusTsF
long endPreCheckNanos = System.nanoTime();
pipeConsensusReceiverMetrics.recordTsFileSealPreCheckTimer(
endPreCheckNanos - startPreCheckNanos);
updateWritePointCountMetrics(req.getPointCount(), fileAbsolutePath);
final TSStatus status =
loadFileToDataRegion(
fileAbsolutePath,
ProgressIndexType.deserializeFrom(ByteBuffer.wrap(req.getProgressIndex())));
updateWritePointCountMetrics(req.getPointCount(), fileAbsolutePath);
pipeConsensusReceiverMetrics.recordTsFileSealLoadTimer(System.nanoTime() - endPreCheckNanos);

if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
Expand Down Expand Up @@ -538,11 +538,11 @@ private TPipeConsensusTransferResp handleTransferFileSealWithMods(
pipeConsensusReceiverMetrics.recordTsFileSealPreCheckTimer(
endPreCheckNanos - startPreCheckNanos);
final String tsFileAbsolutePath = fileAbsolutePaths.get(1);
updateWritePointCountMetrics(req.getPointCounts().get(1), tsFileAbsolutePath);
final TSStatus status =
loadFileToDataRegion(
tsFileAbsolutePath,
ProgressIndexType.deserializeFrom(ByteBuffer.wrap(req.getProgressIndex())));
updateWritePointCountMetrics(req.getPointCounts().get(1), tsFileAbsolutePath);
pipeConsensusReceiverMetrics.recordTsFileSealLoadTimer(System.nanoTime() - endPreCheckNanos);

if (status.getCode() == TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
Expand Down