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]: The cannot complete future twice error does not have any information such as stack trace #43654

Closed
TharmiganK opened this issue Nov 26, 2024 · 2 comments
Assignees
Labels
Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug

Comments

@TharmiganK
Copy link
Contributor

Description

Related to this issue: https://github.com/wso2-enterprise/internal-support-ballerina/issues/837

An error: cannot complete the same future twice. is thrown from the lang without any logs where the error is originated. Since it is a panic behaviour, we expects more information.

Steps to Reproduce

Could not able to reproduce the issue

Affected Version(s)

Ballerina Swan Lake Update 7

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

@TharmiganK TharmiganK changed the title [Bug]: The cannot complete future twice error does not have any information such as stack trace [Bug]: The cannot complete future twice error does not have any information such as stack trace Nov 26, 2024
@ballerina-bot ballerina-bot added the Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime label Nov 26, 2024
@warunalakshitha
Copy link
Contributor

warunalakshitha commented Dec 10, 2024

Runtime actually throw a ballerina error if same future called twice, but it seems http or any other package seems not catch properly. Since future complete happens in many places, it might be hard to track too. We have fixed this issue in update 11 with new concurrency model (Now API user cant complete same future twice via API), but there are some implementation implications to fix in previous versions.

Copy link

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
None yet
Development

No branches or pull requests

4 participants