Skip to content

Commit

Permalink
Merge pull request eventuate-foundation#150 from klausvahter/flush-lsn
Browse files Browse the repository at this point in the history
eventuate-foundation#147 flush lsn when processing monitoring message
  • Loading branch information
cer authored Sep 15, 2023
2 parents 867b5d5 + 2e740b0 commit 8ba65c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ private void checkMonitoringChange(PostgresWalMessage postgresWalMessage) {
int index = Arrays.asList(change.getColumnnames()).indexOf("last_time");
dbLogMetrics.onLagMeasurementEventReceived(Long.parseLong(change.getColumnvalues()[index]));
onEventReceived();
offsetProcessor.saveOffset(CompletableFuture.completedFuture(Optional.of(stream.getLastReceiveLSN())));
});
}

Expand Down

0 comments on commit 8ba65c3

Please sign in to comment.