Skip to content

Commit

Permalink
Disable normalization skip when no new data (#17574)
Browse files Browse the repository at this point in the history
* Disable normalization skip when no new data

* Disable irrelevant tests
  • Loading branch information
gosusnp authored Oct 4, 2022
1 parent 8b4f65d commit aedd535
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ public StandardSyncOutput run(final JobRunConfig jobRunConfig,
shouldRun = true;
}
if (!shouldRun) {
LOGGER.info("Skipping normalization because there are no records to normalize.");
continue;
LOGGER.info("No records to normalize detected");
// Normalization skip has been disabled: issue #5417
// LOGGER.info("Skipping normalization because there are no records to normalize.");
// continue;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

@SuppressWarnings({"PMD.UnusedPrivateField", "PMD.UnusedPrivateMethod"})
Expand Down Expand Up @@ -312,6 +313,7 @@ void testCancelDuringNormalization() {
}

@Test
@Disabled("This behavior has been disabled temporarily (OC Issue #741)")
void testSkipNormalization() throws IOException {
final SyncStats syncStats = new SyncStats().withRecordsCommitted(0L);
final StandardSyncSummary standardSyncSummary = new StandardSyncSummary().withTotalStats(syncStats);
Expand Down

0 comments on commit aedd535

Please sign in to comment.