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

Composite Exception - Circular Reference Handling #1632

Merged
merged 2 commits into from
Aug 27, 2014

Conversation

benjchristensen
Copy link
Member

The printStackTrace and getCause implementations have different approaches to handling circular references.
If on a JVM where printStackTrace is called directly, the full causal chain will always be printed. If on one such as Dalvik where getCause is invoked directly then it will cut the causal chain if it sees a duplicate.

See #1405

abersnaze and others added 2 commits August 26, 2014 11:05
- reverting to version that just does printStackTrace
- see ReactiveX#1405
The printStackTrace and getCause implementations have different approaches to handling circular references.
If on a JVM where printStackTrace is called directly, the full causal chain will always be printed. If on one such as Dalvik
where getCause is invoked directly then it will cut the causal chain if it sees a duplicate.
@cloudbees-pull-request-builder

RxJava-pull-requests #1534 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member Author

This passed the Netflix production canary over night. There are no threads spinning on circular references.

This pull request should work for both Android and Oracle JVMs as it supports both printStackTrace and getCause mechanisms. The printStackTrace approach is better, but the getCause one should work normally and then bail if it sees a circular reference.

benjchristensen added a commit that referenced this pull request Aug 27, 2014
Composite Exception - Circular Reference Handling
@benjchristensen benjchristensen merged commit f9744e9 into ReactiveX:0.20.x Aug 27, 2014
@benjchristensen benjchristensen deleted the composite-exception branch August 27, 2014 15:53
benjchristensen added a commit to benjchristensen/RxJava that referenced this pull request Aug 27, 2014
ReactiveX#1632 Composite Exception - Circular Reference Handling
ReactiveX#1631 Handle Fatal Exceptions in doOnEach
benjchristensen added a commit to benjchristensen/RxJava that referenced this pull request Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants