Skip to content
Open
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### Bug fixes

- Fix a memory leak due to the use of a local thread pool

### Spring-data
- Add `tarantool-spring-data-35` module with support for Spring Boot 3.5.x and Spring Data 3.5

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -71,8 +69,6 @@ public synchronized void stop() {

private static void startParallel(
Map<String, ? extends Startable> containers, TQEConfigurator configurator) {

final Executor executor = Executors.newFixedThreadPool(containers.size());
final List<CompletableFuture<?>> futures = new ArrayList<>(containers.size());
final CopyOnWriteArrayList<Throwable> errors = new CopyOnWriteArrayList<>();

Expand All @@ -87,8 +83,7 @@ private static void startParallel(
LOGGER.error("Error starting TQE container [container_name='{}']", name, e);
errors.add(e);
}
},
executor)));
})));

CompletableFuture.allOf(futures.toArray(new CompletableFuture[] {})).join();

Expand Down
Loading