File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Drives BurstRepro: proxy + backend + resolver-burst iterations hunting the stale-picker wedge.
3+ set -u
4+
5+ WORK=pf-stuck-repro
6+ OUT=$WORK /out-burst
7+ MODE_FILE=/tmp/proxy-mode
8+ PROXY_PORT=15001
9+ BACKEND_PORT=15002
10+
11+ mkdir -p " $OUT "
12+ exec > >( tee " $OUT /driver.log" ) 2>&1
13+
14+ ts () { date +%H:%M:%S.%3N; }
15+ say () { echo " $( ts) [driver] $* " ; }
16+
17+ echo pass > " $MODE_FILE "
18+ python3 " $WORK /proxy.py" $PROXY_PORT $BACKEND_PORT " $MODE_FILE " > " $OUT /proxy.log" 2>&1 &
19+ PROXY_PID=$!
20+ say " proxy started pid=$PROXY_PID "
21+
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ dependencies {
3030 // Even though client-side won't call grpc-services directly, it needs the
3131 // dependency to enable the health-aware round_robin implementation
3232 implementation " io.grpc:grpc-services:${ grpcVersion} "
33+ implementation " io.grpc:grpc-netty:${ grpcVersion} "
3334 implementation " io.grpc:grpc-stub:${ grpcVersion} "
3435
3536 // examples/advanced need this for JsonFormat
@@ -46,7 +47,7 @@ dependencies {
4647protobuf {
4748 protoc { artifact = " com.google.protobuf:protoc:${ protocVersion} " }
4849 plugins {
49- grpc { artifact = " io.grpc:protoc-gen-grpc-java:${ grpcVersion } " }
50+ grpc { artifact = " io.grpc:protoc-gen-grpc-java:1.83.0 " }
5051 }
5152 generateProtoTasks {
5253 all()* . plugins { grpc {} }
You can’t perform that action at this time.
0 commit comments