Skip to content
Permalink
Browse files
[NO ISSUE][MD] Ensure metadata node is initialized
- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- Before attempting to being any metadata transaction, ensure
  the metadata node has been bound to avoid NPE.

Change-Id: Ic54314e9da42b4111a1aab53d1ec355ad13922e1
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/10444
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
(cherry picked from commit e842805)
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/12023
  • Loading branch information
mhubail committed Jun 24, 2021
1 parent acff469 commit 294e5ed400c12ccb0da12c6339b1948981915840
Showing 1 changed file with 5 additions and 0 deletions.
@@ -129,6 +129,11 @@ public void init() throws HyracksDataException {

@Override
public MetadataTransactionContext beginTransaction() throws RemoteException {
try {
INSTANCE.init();
} catch (HyracksDataException e) {
throw new ACIDException(e);
}
TxnId txnId = createTxnId();
metadataNode.beginTransaction(txnId);
return new MetadataTransactionContext(txnId);

0 comments on commit 294e5ed

Please sign in to comment.