Skip to content

Conversation

@OlgaMaciaszek
Copy link
Contributor

This is related to spring-cloud/spring-cloud-netflix#4094 as an attempted fix.

@OlgaMaciaszek OlgaMaciaszek marked this pull request as ready for review February 4, 2025 16:19
@OlgaMaciaszek
Copy link
Contributor Author

@howardyuan could you please take a look?

@OlgaMaciaszek
Copy link
Contributor Author

Adding pic with comments from offline discussion:
Screenshot 2025-03-04 at 9 02 17 AM

@OlgaMaciaszek
Copy link
Contributor Author

Hi @howardyuan, regarding your comments before, I still use the pre-existing method under the hood from here, so setIsDirty will be called as well if we do change the status. I have added an exception when we verify the previous status first, as in this scenario we assume that it is the status that should be there in a correct workflow and if it's not set then possibly there was a race condition. null is returned in the pre-existing implementation if the status we want to change to is also the one already set - so nothing needs to be done. Seems like a different scenario to me. Let me know what you think. CC @spencergibb

Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
@howardyuan howardyuan merged commit 6f95bd3 into Netflix:2.x Apr 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants