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

Promises in DDS's that resolve when an op is ack'd should reject if ack can't be received #2088

Closed
Tracked by #6272
markfields opened this issue May 7, 2020 · 3 comments
Labels
area: dds Issues related to distributed data structures

Comments

@markfields
Copy link
Member

General case for #1420. See PR #2066 for how to fix - use this.newAckBasedPromise instead of new Promise if the Promise should be rejected if we know the ack won't come in, e.g. on ComponentRuntime dispose.

It might be interesting to look into writing a custom eslint rule for this? The rule would enforce that new Promise isn't used in a class extending SharedObject. Might be too heavy-handed, but want to look into it.

@ghost ghost added the triage label May 7, 2020
@curtisman curtisman added this to the Next 2020 milestone May 30, 2020
@curtisman curtisman added area: dds Issues related to distributed data structures and removed triage labels May 30, 2020
@ghost ghost added the status: stale label Jun 8, 2021
@ghost
Copy link

ghost commented Jun 8, 2021

This issue has been automatically marked as stale because it has had no activity for 180 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!

@markfields
Copy link
Member Author

I think this can go away. I believe the approach in the linked PR turned out to be incorrect anyway.

@ghost ghost removed the status: stale label Jun 12, 2021
@markfields
Copy link
Member Author

FYI @vladsud, in case you think there's something here (you just labeled it for 1.0 consideration)

@danielroney danielroney removed this from the Next milestone Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds Issues related to distributed data structures
Projects
None yet
Development

No branches or pull requests

3 participants