Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! table settings altering
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovit committed May 12, 2015
1 parent c61a82e commit 4eb0fb9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,10 +289,7 @@ public void apply(ImmutableSettings.Builder settingsBuilder, Object[] parameters
} catch (IllegalArgumentException e) {
shardsRecoverySettings = ExpressionToObjectVisitor.convert(expression, parameters).toString();
if (!ALLOWED_VALUES.contains(shardsRecoverySettings)) {
throw new IllegalArgumentException(String.format("'%s' is not an allowed value. Allowed values are: %s",
shardsRecoverySettings, Joiner.on(", ").join(ALLOWED_VALUES)

));
throw invalidException();
}
}
settingsBuilder.put(TableParameterInfo.RECOVERY_INITIAL_SHARDS, shardsRecoverySettings);
Expand Down

0 comments on commit 4eb0fb9

Please sign in to comment.