@Override public void addDataset(MetadataTransactionContext ctx, Dataset dataset) throws AlgebricksException { // add dataset into metadataNode try { metadataNode.addDataset(ctx.getTxnId(), dataset); } catch (RemoteException e) { throw new MetadataException(ErrorCode.REMOTE_EXCEPTION_WHEN_CALLING_METADATA_NODE, e); } // reflect the dataset into the cache ctx.addDataset(dataset); }