Skip to content

Commit

Permalink
DBZ-4384 Correctly skip emitting events when LOB_ERASE is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros authored and gunnarmorling committed Dec 1, 2021
1 parent 71eb089 commit 54cb7be
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ else if (EventType.LOB_ERASE == event.getEventType()) {
// nothing is done with the event, its just consumed and treated as merged.
LOGGER.warn("\tLOB_ERASE for table '{}' column '{}' is not supported.",
lastSelectLobLocatorEvent.getTableId(), lastSelectLobLocatorEvent.getColumnName());
if (lastEvent != null && EventType.SELECT_LOB_LOCATOR == lastEvent.getEventType()) {
LOGGER.trace("\tSkipped LOB_ERASE, discarding it and the prior SELECT_LOB_LOCATOR");
lastEvent = null;
return true;
}
LOGGER.trace("\tSkipped LOB_ERASE, treated as merged.");
return true;
}
Expand Down

0 comments on commit 54cb7be

Please sign in to comment.