Conversation
|
@rossabaker sincerely sorry for bothering you, but can you dig into that? This issue is a blocker for any new PR at this point :( |
|
I'm a bit concerned that's masking an actual bug. Why shouldn't it work up to 100%? |
🤷🏻 What's even weirder, it spontaneously started failing without any actual changes in the codebase. |
|
We started seeing a similar failure on a patch version of Java 11 that went away on another patch. I think it's changes in the JVM's SSL implementation, and not being rigorously pinned on the JDK we build with. |
I had the same thoughts about that, but we run on |
|
An unblocker is we can mark the test flaky. |
DISCLAIMER: this is a silly monkey-patching-like attempt to resolve #769
That change might make this particular test nonsense, but I will try to share my insights about it.
Prerequisites
Let us introduce the following notation:
Test suite says:
What is the
SSLSession#getPacketBufferSize?According to the docs:
So what?
When the
contentLengthgets closer or goes beyond the value ofpacketSize– we get a failed test. The default value ofpacketSizeis equal to '16709' on the JDK 17. In that particular test, we setSSLStage#maxWriteto 100. So, my hypothesis is if we adjust the value ofcontentLegthto be greater thanSSLStage#maxWriteand less thanpacketSizewe should preserve the sense of the test suite.Behind the scenes
Nonetheless, I have no idea why this test become broken. 🤷🏻