Skip to content

Commit

Permalink
fix oracle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanhang1993 committed Jun 15, 2023
1 parent 3286cda commit a8adad5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,15 @@ public void execute(Context context) throws Exception {
if (snapshotResult.isCompletedOrSkipped()) {
final RedoLogSplitReadTask backfillBinlogReadTask =
createBackfillRedoLogReadTask(backfillBinlogSplit, sourceFetchContext);

final LogMinerOracleOffsetContextLoader loader =
new LogMinerOracleOffsetContextLoader(
((OracleSourceFetchTaskContext) context).getDbzConnectorConfig());
final OracleOffsetContext oracleOffsetContext =
loader.load(backfillBinlogSplit.getStartingOffset().getOffset());
backfillBinlogReadTask.execute(
new SnapshotBinlogSplitChangeEventSourceContext(),
sourceFetchContext.getOffsetContext());
new SnapshotBinlogSplitChangeEventSourceContext(), oracleOffsetContext);
taskRunning = false;
} else {
taskRunning = false;
throw new IllegalStateException(
Expand Down

0 comments on commit a8adad5

Please sign in to comment.