You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "Asthenia0412 (via GitHub)" <gi...@apache.org> on 2026/09/28 01:38:03 UTC
[PR] [fix][functions] Forward source message properties in Go functions [pulsar]
Asthenia0412 opened a new pull request, #26728:
URL: https://github.com/apache/pulsar/pull/26728
## Motivation
The Go Functions runtime ignores `SinkSpec.forwardSourceMessageProperty`, so output messages silently lose source properties even when forwarding is enabled. This breaks metadata propagation in chained functions and omits the input topic and message ID properties used by the runtime.
## Modifications
Copy source properties to the output message when forwarding is enabled, then set the runtime-owned input topic and serialized message ID properties so they take precedence over colliding source keys. Add coverage for enabled and disabled forwarding, reserved keys, and preserving the input property map.
Fixes #26408
## Verification
- `go build ./...`
- `go test -v $(go list ./... | grep -v examples)`
- `golangci-lint run -c ./golangci.yml ./pf` (v2.12.2)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org