A case occurred in which the External Sort failed during spilling. All that was written to the log was:
As it turns out, there are two places in external sort that can throw a user exception. But, because the log contains neither line numbers nor detailed messages, it is not obvious which one was the cause.
When logging a user error, include the text provided when building the error. For example, consider the following external sort code:
The expected message is:
The part in parens is the cause of the error: the e.getMessage( ) in the above code.