Skip to content

Commit dafe647

Browse files
PeteyPiiPatrick Wrobel
andauthored
fix: test proxy doesn't return "http2 excpetion" for long errors (#2775)
Co-authored-by: Patrick Wrobel <[email protected]>
1 parent d36e897 commit dafe647

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,9 @@ private InstantiatingGrpcChannelProvider getTransportChannel(
828828
public ManagedChannelBuilder apply(ManagedChannelBuilder input) {
829829
NettyChannelBuilder channelBuilder = (NettyChannelBuilder) input;
830830

831+
// The default replaces long (several KiB) error messages with "http2 exception"
832+
channelBuilder.maxInboundMetadataSize(Integer.MAX_VALUE);
833+
831834
if (sslContext != null) {
832835
channelBuilder.sslContext(sslContext);
833836
}

0 commit comments

Comments
 (0)