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
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ protected void configure() {
withPrivilegedMode(true);
withCreateContainerCmdModifier(
cmd -> {
cmd.withName(this.node).withUser("root");
cmd.withUser("root");
if (cmd.getName() == null) {
cmd.withName(this.node);
}
Comment on lines +234 to +236
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess you can set name manually or if it's not then it's set as node?

But what is node? I don't want to search for meaning of node 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node is just a name for a tarantool container instance

String[] originalEntrypoint =
Comment thread
MaxSiominDev marked this conversation as resolved.
cmd.getEntrypoint() != null && cmd.getEntrypoint().length > 0
? cmd.getEntrypoint()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,16 @@ void testSimpleMultipleRestart() throws InterruptedException {
c.restart(1, TimeUnit.SECONDS);
}
}

@RepeatedTest(3)
void testSequentialClustersWithSameInstanceNamesDoNotConflict() {
for (int i = 0; i < 2; i++) {
try (TDBCluster c =
TDB2ClusterImpl.builder(TARANTOOL_DB_IMAGE_NAME)
.withStartupTimeout(STARTUP_TIMEOUT)
.build()) {
c.start();
}
}
}
}