Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Alternate receive worker message passing hangs for nil return #41941

Closed
HindujaB opened this issue Jan 5, 2024 · 2 comments · Fixed by #41939
Closed

[Bug]: Alternate receive worker message passing hangs for nil return #41941

HindujaB opened this issue Jan 5, 2024 · 2 comments · Fixed by #41939
Assignees
Labels
Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@HindujaB
Copy link
Contributor

HindujaB commented Jan 5, 2024

Description

$subject

Steps to Reproduce

import ballerina/io;

public function main() {
    boolean foo =  true;
    worker w1 {
        if (foo) {
            () -> w2;
        } else {
            () -> w2;
        }
    }

    worker w2 {
        ()|error v = <- w1| w1;
        io:println(v);
    }
    wait w2;
}

Affected Version(s)

https://github.com/ballerina-platform/ballerina-lang/tree/worker_change

OS, DB, other environment details and versions

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@HindujaB HindujaB self-assigned this Jan 5, 2024
@ballerina-bot ballerina-bot added the Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime label Jan 5, 2024
@HindujaB HindujaB linked a pull request Jan 8, 2024 that will close this issue
13 tasks
@HindujaB
Copy link
Contributor Author

HindujaB commented May 8, 2024

This is now available in 2201.9.0.

@HindujaB HindujaB closed this as completed May 8, 2024
Copy link

github-actions bot commented May 8, 2024

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants