Cody Schroeder created BEAM-4175: ------------------------------------ Summary: exec.Invoke: panic: index out of range Key: BEAM-4175 URL: https://issues.apache.org/jira/browse/BEAM-4175 Project: Beam Issue Type: Bug Components: sdk-go Reporter: Cody Schroeder Assignee: Henning Rohde
Executing a pipeline with a ProcessElement method having the following signature will cause a runtime "index out of range" panic: {{func (d *doSomething) ProcessElement(key int, e func(*[]byte) bool) (int, error) {}} Changing the signature to have an emit function resolves the runtime panic: {{func (d *doSomething) ProcessElement(key int, e func(*[]byte) bool, emit func(int)) error {}} The panic is 100% reproducible with [beam_err.go|[https://gist.github.com/schroederc/d90db7dbcd43c94bc59ba7b64fd9ca3e].] I believe the function signature causing the panic is valid (and the panic is the bug), but if that's not the case, then the bug would be the late panic (vs. during beam type checking). -- This message was sent by Atlassian JIRA (v7.6.3#76005)