/** * Calls the destroy method of {@link ProgramLifecycle}. */ private void destroy() { TransactionControl defaultTxControl = context.getDefaultTxControl(); TransactionControl txControl = mapReduce instanceof ProgramLifecycle ? Transactions.getTransactionControl(defaultTxControl, MapReduce.class, mapReduce, "destroy") : defaultTxControl; context.destroyProgram(programLifecycle, txControl, false); if (emitFieldLineage()) { try { FieldLineageInfo info = new FieldLineageInfo(context.getFieldLineageOperations()); fieldLineageWriter.write(mapReduceRunId, info); } catch (Throwable t) { LOG.warn("Failed to emit the field lineage operations for MapReduce {}", mapReduceRunId, t); } } }
/** * Calls the destroy method of {@link ProgramLifecycle}. */ private void destroy() { TransactionControl defaultTxControl = context.getDefaultTxControl(); TransactionControl txControl = mapReduce instanceof ProgramLifecycle ? Transactions.getTransactionControl(defaultTxControl, MapReduce.class, mapReduce, "destroy") : defaultTxControl; context.destroyProgram(programLifecycle, txControl, false); if (emitFieldLineage()) { try { FieldLineageInfo info = new FieldLineageInfo(context.getFieldLineageOperations()); fieldLineageWriter.write(mapReduceRunId, info); } catch (Throwable t) { LOG.warn("Failed to emit the field lineage operations for MapReduce {}", mapReduceRunId, t); } } }
TransactionControl defaultTxControl = context.getDefaultTxControl(); TransactionControl txControl = mapReduce instanceof AbstractMapReduce ? Transactions.getTransactionControl(defaultTxControl, AbstractMapReduce.class,
TransactionControl defaultTxControl = context.getDefaultTxControl(); TransactionControl txControl = mapReduce instanceof AbstractMapReduce ? Transactions.getTransactionControl(defaultTxControl, AbstractMapReduce.class,