@Override public void addIndex(MetadataTransactionContext ctx, Index index) throws AlgebricksException { try { metadataNode.addIndex(ctx.getTxnId(), index); } catch (RemoteException e) { throw new MetadataException(ErrorCode.REMOTE_EXCEPTION_WHEN_CALLING_METADATA_NODE, e); } ctx.addIndex(index); }