Skip to content

Commit

Permalink
fix: Increased database creation timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed Mar 21, 2024
1 parent 3c6047c commit 91ca359
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class Admin implements AutoCloseable {
private static final String CONTENT_TYPE_JSON = "application/json";
private static final String V1 = "/v1/";
private static final CharSequence PATH_SEPARATOR = "/";
private static final Duration DEFAULT_DATABASE_CREATION_TIMEOUT = Duration.ofSeconds(10);
private static final Duration DEFAULT_DATABASE_CREATION_TIMEOUT = Duration.ofSeconds(30);
private static final Duration DEFAULT_DATABASE_CREATION_POLL_INTERVAL = Duration.ofSeconds(1);

private final ObjectMapper objectMapper = new ObjectMapper()
Expand Down Expand Up @@ -235,8 +235,7 @@ public List<InstalledModule> getModules() throws IOException, GeneralSecurityExc
objectMapper.getTypeFactory().constructCollectionType(List.class, InstalledModule.class));
}

public Database createDatabase(Database database)
throws IOException, GeneralSecurityException, InterruptedException {
public Database createDatabase(Database database) throws IOException, GeneralSecurityException {
Map<String, InstalledModule> installedModules = new HashMap<>();
for (InstalledModule module : getModules()) {
installedModules.put(module.getName(), module);
Expand Down

0 comments on commit 91ca359

Please sign in to comment.