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

fix: solve the race condition for the clispinner #1288

Merged
merged 2 commits into from
Jun 24, 2021
Merged

fix: solve the race condition for the clispinner #1288

merged 2 commits into from
Jun 24, 2021

Conversation

Pantani
Copy link
Collaborator

@Pantani Pantani commented Jun 22, 2021

Closes #1265

What does this PR does?

Fix the data race condition for the CLISpinner.

Considerations

The current spinner has some data race conditions, and using the locks provided by the package can stuck the main goroutine and stop the application. The issue can be reproduced by calling a lock after calling the stop method.

How to test?

Scaffolding a new application with the Golang -race parameters active

@Pantani Pantani requested review from fadeev, ilgooz and lumtis as code owners June 22, 2021 15:51
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pantani Happy first PR!!! 🎊 🍻 (oh, we also had #1267!)

starport/pkg/clispinner/clispinner.go Show resolved Hide resolved
starport/pkg/clispinner/clispinner.go Outdated Show resolved Hide resolved
starport/pkg/clispinner/clispinner.go Outdated Show resolved Hide resolved
@Pantani
Copy link
Collaborator Author

Pantani commented Jun 22, 2021

@Pantani Happy first PR!!! 🎊 🍻 (oh, we also had #1267!)

thanks!!!! 🚀 🚀 🚀

@Pantani Pantani requested a review from ilgooz June 22, 2021 20:54
@ilgooz ilgooz merged commit b1e5b34 into ignite:develop Jun 24, 2021
@Pantani Pantani deleted the fix/spinner-data-race branch June 24, 2021 04:06
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
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.

bug: race condition from the clispinner
3 participants