JAVA-6071 use trampoline pattern to avoid stackoverflow in reactive driver #1973
Open
strogiyotec wants to merge 1 commit into
Open
JAVA-6071 use trampoline pattern to avoid stackoverflow in reactive driver #1973strogiyotec wants to merge 1 commit into
strogiyotec wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JAVA-6071
the
AsynchronousChannelStreamwas rewritten to usethenRunWhileLoopinstead ofBasicCompletionHandlerthat caused a stackoverflowthenRunWhileLoopinternally uses TRAMPOLINE to avoid increased stacktracesHow it was tested
Start mongodb in tls mode
Run test case
com.mongodb.reactivestreams.client.CrudProseTest.testBulkWriteHandlesWriteErrorsAcrossBatchesordered=false-Xss512kto decrease stack size-Dorg.mongodb.test.uri="mongodb://localhost:27017/?tls=true&tlsAllowInvalidHostnames=true&tlsCAFile=/home/almas/mongodb-ssl/ca.crt"to connect to TLS mongoAdditionally we can set an eval at
AsyncTrampoline#65toSystem.out.println("Depth"+ Thread.currentThread().getStackTrace().length)and verify that printed number is not growing