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

[CLOSED] Auto Update Error Handlng Fix #11888

Open
core-ai-bot opened this issue Aug 30, 2021 · 4 comments
Open

[CLOSED] Auto Update Error Handlng Fix #11888

core-ai-bot opened this issue Aug 30, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by niteskum
Monday Jun 11, 2018 at 13:30 GMT
Originally opened as adobe/brackets#14412



niteskum included the following code: https://github.com/adobe/brackets/pull/14412/commits

@core-ai-bot
Copy link
Member Author

Comment by niteskum
Monday Jun 11, 2018 at 13:30 GMT


ping@nethip@vickramdhawal for review

@core-ai-bot
Copy link
Member Author

Comment by nitheshgangadharsalian
Tuesday Jun 12, 2018 at 15:37 GMT


Bug: adobe/brackets#14411

@core-ai-bot
Copy link
Member Author

Comment by nethip
Thursday Jun 21, 2018 at 10:13 GMT


@niteskum Could you provide description here as to how the bugs has been fixed? And also possible reasons as to how one can run into this error?

@core-ai-bot
Copy link
Member Author

Comment by niteskum
Thursday Jun 21, 2018 at 16:05 GMT


@nethip In setupAutoUpdate() function initNode() and initState() function were called one after another. So there were no synchronization between setUpdateInProgressState() and CheckUpdateStatus()
InitNode Function notifies Brackets to reset inProgress Flag when Bracket is launched. and initState() function used to call checkUpdateFunction() which cleans up Update Temp Folder If Update was initiated in prev session. sometime UpdateTemp were being cleaned up before setting up the flags. and Exception were thrown in setUpdateInProgress() function because there was no File to write.

Changes in this PR:
Renamed the function "setAutoUpdateInProgressFlag" to "nodeDomainInitialized". and from initNode Function Node Notifies to Brackets to execute "nodeDomainInitialized" function and pass a parameter "reset" which is true If Brackets is launched. and false If New Brackets Window is opened.
and in nodeDomainInitialized function , initState() Function is called . and resetting of "InProgress"Flag and checkUpdateStatus() are executed in sequence.
so this makes sure There is No RaceCondtion between resetting the flag and cleaning up the temp folder.

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

No branches or pull requests

1 participant