Skip to content

Commit 854b125

Browse files
committed
Repro for grpc#12958.
1 parent 3390e5c commit 854b125

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

driver-burst.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+

examples/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 {
4647
protobuf {
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 {} }

0 commit comments

Comments
 (0)