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

[FLINK-9357][tests][yarn] Add margins to exception excerpts #6009

Closed
wants to merge 1 commit into from

Conversation

zentol
Copy link
Contributor

@zentol zentol commented May 14, 2018

What is the purpose of the change

The yarn tests check the log files for exceptions to detect test failures. If detected a test will fail and an excerpt from the logs will be printed.

The excerpt content is currently the stack of the detected exception. This only works correctly if the stacktrace follows a specific formatting style; for example if an exception message contains an empty line the output will be cut off.

With this PR we also include the 10 lines before/after the found exception to make this a bit more reliable. As a side-effect we also get a little contextual information.

Brief change log

  • add a utilty BufferingScanner class to access previously read messages
  • modify excerpt extraction to include lines before/after the exception

@dawidwys
Copy link
Contributor

+1

@zentol
Copy link
Contributor Author

zentol commented May 16, 2018

merging.

zentol added a commit to zentol/flink that referenced this pull request May 16, 2018
zentol added a commit to zentol/flink that referenced this pull request May 16, 2018
zentol added a commit to zentol/flink that referenced this pull request May 16, 2018
@asfgit asfgit closed this in 254724e May 17, 2018
@zentol zentol deleted the 9357 branch May 17, 2018 06:18
cjolif pushed a commit to cjolif/flink that referenced this pull request May 19, 2018
sampathBhat pushed a commit to sampathBhat/flink that referenced this pull request Jul 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants