Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cradle = "5.4.4-dev"
[libraries]
th2-common-utils = { group = "com.exactpro.th2", name = "common-utils", version = "2.3.1-dev" }
th2-common = { group = "com.exactpro.th2", name = "common", version = "5.15.0-dev" }
th2-task-utils = { group = "com.exactpro.th2", name = "task-utils", version = "0.1.3" }
th2-task-utils = { group = "com.exactpro.th2", name = "task-utils", version = "0.1.4" }

cradle-core = { group = "com.exactpro.th2", name = "cradle-core", version.ref = "cradle" }
cradle-cassandra = { group = "com.exactpro.th2", name = "cradle-cassandra", version.ref = "cradle" }
Expand Down
10 changes: 6 additions & 4 deletions src/main/java/com/exactpro/th2/estore/EventPersistor.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public EventPersistor(@NotNull ErrorCollector errorCollector,
this.persisotrTerminationTimeout = config.getPersisotrTerminationTimeout();
this.cradleStorage = requireNonNull(cradleStorage, "Cradle storage can't be null");
this.taskQueue = new BlockingScheduledRetryableTaskQueue<>(config.getMaxTaskCount(), config.getMaxTaskDataSize(), scheduler);
this.futures = new FutureTracker<>();
this.futures = FutureTracker.createUnlimited();
this.metrics = new EventPersistorMetrics<>(taskQueue);
this.executor = Executors.newScheduledThreadPool(config.getProcessingThreads(), THREAD_FACTORY);
}
Expand Down Expand Up @@ -117,7 +117,7 @@ public void run() {
resolveTaskError(task, e);
}
} catch (InterruptedException ie) {
LOGGER.debug("Received InterruptedException. aborting");
LOGGER.debug("Received InterruptedException. aborting", ie);
break;
}
}
Expand Down Expand Up @@ -193,7 +193,7 @@ public void close () {
}


void processTask(ScheduledRetryableTask<PersistenceTask> task) throws IOException, CradleStorageException {
void processTask(ScheduledRetryableTask<PersistenceTask> task) throws IOException, CradleStorageException, InterruptedException {

final TestEventToStore event = task.getPayload().eventBatch;
final Histogram.Timer timer = metrics.startMeasuringPersistenceLatency();
Expand All @@ -213,7 +213,9 @@ void processTask(ScheduledRetryableTask<PersistenceTask> task) throws IOExceptio
executor
);

futures.track(result);
if(!futures.track(result)) {
LOGGER.warn("Store test even future isn't tracked");
}
}


Expand Down