Skip to content

Commit 3719011

Browse files
committed
Add debug print statements to diagnose why server is not starting.
1 parent 93cb9ad commit 3719011

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interop-testing/src/main/java/io/grpc/testing/integration/TestServiceServer.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ void parseArgs(String[] args) {
156156
@SuppressWarnings("AddressSelection")
157157
@VisibleForTesting
158158
void start() throws Exception {
159+
System.out.println("TestServiceServer.start() called with addressType " + addressType);
160+
System.out.flush();
159161
executor = Executors.newSingleThreadScheduledExecutor();
160162
ServerCredentials serverCreds;
161163
if (useAlts) {
@@ -194,6 +196,8 @@ void start() throws Exception {
194196
((NettyServerBuilder) serverBuilder).addListenAddress(v4Address);
195197
}
196198
if (setMcsLimit) {
199+
System.out.println("TestServiceServer.start() setting mcs limit to 2.");
200+
System.out.flush();
197201
((NettyServerBuilder) serverBuilder).maxConcurrentCallsPerConnection(2);
198202
}
199203
break;
@@ -211,6 +215,8 @@ void start() throws Exception {
211215
default:
212216
throw new AssertionError("Unknown address type: " + addressType);
213217
}
218+
System.out.println("TestServiceServer.start() calling serverBuilder start.");
219+
System.out.flush();
214220
server = serverBuilder
215221
.maxInboundMessageSize(AbstractInteropTest.MAX_MESSAGE_SIZE)
216222
.addService(
@@ -220,6 +226,8 @@ void start() throws Exception {
220226
.intercept(OrcaMetricReportingServerInterceptor.create(metricRecorder))
221227
.build()
222228
.start();
229+
System.out.println("TestServiceServer.start() after calling serverBuilder start.");
230+
System.out.flush();
223231
}
224232

225233
@VisibleForTesting

0 commit comments

Comments
 (0)