Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
log some detail when history for trigger not found
  • Loading branch information
erilong committed Apr 21, 2008
1 parent 7b6a748 commit 12e288a
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -85,6 +85,10 @@ public void insertReloadEvent(final Node targetNode, final Trigger trigger,
final String overrideInitialLoadSelect) {
final TriggerHistory history = configurationService.getLatestHistoryRecordFor(trigger.getTriggerId());

if (history == null) {
throw new RuntimeException("Cannot find history for trigger " + trigger.getTriggerId() + ", "
+ trigger.getSourceTableName());
}
// initial_load_select for table can be overridden by populating the row_data
Data data = new Data(history.getSourceTableName(), DataEventType.RELOAD, overrideInitialLoadSelect,
null, history);
Expand Down

0 comments on commit 12e288a

Please sign in to comment.