synchronized (lock) {
try {
SummaryEvent summaryEvent = (SummaryEvent) event.getHistoryEvent();
handleSummaryEvent(dagId, eventType, summaryEvent);
summaryStream.hsync();
if (summaryEvent.writeToRecoveryImmediately()) {
handleRecoveryEvent(event);
doFlush(outputStreamMap.get(event.getDagID()),
appContext.getClock().getTime(), true);
} else {
if (LOG.isDebugEnabled()) {