Skip to content

Commit

Permalink
testing: fix flaky itest (dml.txt)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Jan 27, 2015
1 parent 90abbbc commit 816dcda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void table(TableIdent tableIdent) {
TableInfo tableInfo = schemaInfo.getTableInfo(tableIdent.name());
if (tableInfo == null) {
throw new TableUnknownException(tableIdent.fqn());
} else if (tableInfo.isAlias()) {
} else if (tableInfo.isAlias() && !tableInfo.isPartitioned()) {
throw new UnsupportedOperationException("Table alias not allowed in DROP TABLE statement.");
}
this.tableIdent = tableIdent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
public class DocTableInfoBuilder {

private final TableIdent ident;
private final MetaData metaData;
private final boolean checkAliasSchema;
private final DocSchemaInfo docSchemaInfo;
private final ClusterService clusterService;
private final TransportPutIndexTemplateAction transportPutIndexTemplateAction;
private final MetaData metaData;
private String[] concreteIndices;
ESLogger logger = ESLoggerFactory.getLogger(FileSystemUtils.class.getName());

Expand All @@ -65,8 +65,8 @@ public DocTableInfoBuilder(DocSchemaInfo docSchemaInfo,
this.docSchemaInfo = docSchemaInfo;
this.clusterService = clusterService;
this.transportPutIndexTemplateAction = transportPutIndexTemplateAction;
this.metaData = clusterService.state().metaData();
this.ident = ident;
this.metaData = clusterService.state().metaData();
this.checkAliasSchema = checkAliasSchema;
}

Expand Down

0 comments on commit 816dcda

Please sign in to comment.