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 @@ -216,7 +216,7 @@ public void alterDatabase(String name, List<PropertyChange> changes, boolean ign
if (changes == null || changes.isEmpty()) {
return;
}
alterDatabaseImpl(name, changes);
this.alterDatabaseImpl(name, changes);
} catch (DatabaseNotExistException e) {
if (ignoreIfNotExists) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ protected void dropDatabaseImpl(String name) {
}

@Override
protected void alterDatabaseImpl(String name, List<PropertyChange> changes) {
protected void alterDatabaseImpl(String name, List<PropertyChange> changes)
throws DatabaseNotExistException {
throw new UnsupportedOperationException("Alter database is not supported.");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ public void alterDatabase(String name, List<PropertyChange> changes, boolean ign
request,
AlterDatabaseResponse.class,
restAuthFunction);
if (response.getUpdated().isEmpty()) {
throw new IllegalStateException("Failed to update properties");
}
// if (response.getUpdated().isEmpty()) {
// throw new IllegalStateException("Failed to update properties");
// }
} catch (NoSuchResourceException e) {
if (!ignoreIfNotExists) {
throw new DatabaseNotExistException(name);
Expand Down
Loading