Closed raakella1 closed 8 months ago
Attention: 6 lines
in your changes are missing coverage. Please review.
Comparison is base (
8066124
) 76.95% compared to head (5a66685
) 76.36%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
To deserialize the ByteBuffer at the receiver side of the GRPC generic service, we use the method
TrySingleSlice
which gives us the reference to the underlying buffer. This only works if the underlying buffer is made up of a single slice. GRPC doesn't guarantee that the buffer we receive is always made up of a single slice. (On average, this issue causes the unit test to fail in every 5 to 10 runs) The fix in this PR falls back to using the methodDumpToSingleSlice
which gives us a copy of the underlying buffer. The downside to this is that we incur an additional copy. We need to revisit this when we are doing a performance analysis and see if this becomes a bottleneck.The unit test passes consistently with this fix.