Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODE-1465 - Added additional event for sequencing failures #364

Merged
merged 2 commits into from May 1, 2012

Conversation

hchiorean
Copy link
Member

No description provided.

stats.recordDuration(DurationMetric.SEQUENCER_EXECUTION_TIME, durationInNanos, TimeUnit.NANOSECONDS, payload);
}
} catch (Throwable t) {
fireSequencingFailureEvent(selectedNode, inputSession, t);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we capture the sequencer name, sequenced path, and the output path in the failure event? This is all useful information, especially when a sequencer generally works but fails on particular inputs.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sequencer name - no, sequenced path - yes,
the output path not sure - should it be the configured output path ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really, we should probably have all the same information in the failure event as in the success event, except the failure should also include a useful representation of the cause of the failure. You'll notice the old log statements did output information from the WorkItem; I think we should include that information in the event.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the successful case, we have the list of output nodes which were created. In the case of an unexpected exception, how can we get that (the exception can occur at any point during the sequencing code and can have any number of causes) ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, the output nodes may not be available, but we certainly know the output path(s) we passed to the sequencer. Isn't that useful information?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, sure it is. Atm the jcr event has the Throwable cause, but i'll update the pull request and add the extra information from the work item, as you suggested.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thanks a bunch.

…quencer name, output path and selected path (from the sequencer work info)
@hchiorean
Copy link
Member Author

Updated the information supplied to sequencing events with user id, sequencer name, output path and selected path (from the sequencer worker)

@rhauch
Copy link
Contributor

rhauch commented May 1, 2012

Looks great. Thanks, @hchiorean! Will merge shortly.

@rhauch rhauch merged commit 5e3483e into ModeShape:master May 1, 2012
@rhauch
Copy link
Contributor

rhauch commented May 1, 2012

Merged into the 'master' branch after fixing a (minor) merge conflict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants