Search in sources :

Example 1 with ILogMarkerCallback

use of org.apache.asterix.common.transactions.ILogMarkerCallback in project asterixdb by apache.

the class CommitRuntime method open.

@Override
public void open() throws HyracksDataException {
    try {
        transactionContext = transactionManager.getTransactionContext(jobId, false);
        transactionContext.setWriteTxn(isWriteTransaction);
        ILogMarkerCallback callback = TaskUtil.get(ILogMarkerCallback.KEY_MARKER_CALLBACK, ctx);
        logRecord = new LogRecord(callback);
        if (isSink) {
            return;
        }
        initAccessAppend(ctx);
        writer.open();
    } catch (ACIDException e) {
        throw new HyracksDataException(e);
    }
}
Also used : LogRecord(org.apache.asterix.common.transactions.LogRecord) HyracksDataException(org.apache.hyracks.api.exceptions.HyracksDataException) ILogMarkerCallback(org.apache.asterix.common.transactions.ILogMarkerCallback) ACIDException(org.apache.asterix.common.exceptions.ACIDException)

Aggregations

ACIDException (org.apache.asterix.common.exceptions.ACIDException)1 ILogMarkerCallback (org.apache.asterix.common.transactions.ILogMarkerCallback)1 LogRecord (org.apache.asterix.common.transactions.LogRecord)1 HyracksDataException (org.apache.hyracks.api.exceptions.HyracksDataException)1