Skip to content

Commit

Permalink
Fix CsvimIT execution stability - improve files watching reset (#4561)
Browse files Browse the repository at this point in the history
* reset synchronization watcher when starting synch processing

Prevent resetting the watcher after the sync completion since this way it leads to skipped file modifications which occur during long synchronization executions.

Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com>

* reduce timeout

Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com>

---------

Signed-off-by: Iliyan Velichkov <velichkov.iliyan@gmail.com>
  • Loading branch information
iliyan-velichkov authored Jan 13, 2025
1 parent b8188d7 commit 6e7c747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public void processSynchronizers() {
}

processing.set(true);
synchronizationWatcher.reset();

try {

Expand Down Expand Up @@ -397,7 +398,6 @@ public void processSynchronizers() {
definitions.clear();
artefacts.clear();

synchronizationWatcher.reset();
initialized.set(true);
processing.set(false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void createUndefinedTable() {
}

private void verifyDataInTable(String tableName, List<Reader> expectedReaders) {
await().atMost(60, TimeUnit.SECONDS)
await().atMost(30, TimeUnit.SECONDS)
.pollInterval(1, TimeUnit.SECONDS)
.until(() -> {
try {
Expand Down

0 comments on commit 6e7c747

Please sign in to comment.