diff --git a/sdks/go/pkg/beam/runners/prism/internal/worker/worker.go b/sdks/go/pkg/beam/runners/prism/internal/worker/worker.go index 93dc55e31f76..405c1e812a4e 100644 --- a/sdks/go/pkg/beam/runners/prism/internal/worker/worker.go +++ b/sdks/go/pkg/beam/runners/prism/internal/worker/worker.go @@ -22,6 +22,7 @@ import ( "context" "fmt" "io" + "math" "net" "strconv" "strings" @@ -84,7 +85,9 @@ func New(id string) *W { if err != nil { panic(fmt.Sprintf("failed to listen: %v", err)) } - var opts []grpc.ServerOption + opts := []grpc.ServerOption{ + grpc.MaxRecvMsgSize(math.MaxInt32), + } wk := &W{ ID: id, lis: lis,