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

Remove HALT option from MCP as it can result in corruption #2667

Conversation

davidjgonzalez
Copy link
Contributor

2021-08-11 at 5 57 PM

Removed Halt from MCP process modal as this can result in repo corruption sometimes (per Leo B.)

@codecov
Copy link

codecov bot commented Aug 11, 2021

Codecov Report

Merging #2667 (87a7ffc) into master (0cf04ee) will decrease coverage by 0.12%.
The diff coverage is 20.00%.

❗ Current head 87a7ffc differs from pull request most recent head ce913d6. Consider uploading reports for the commit ce913d6 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2667      +/-   ##
============================================
- Coverage     52.52%   52.40%   -0.13%     
+ Complexity     5304     5295       -9     
============================================
  Files           751      751              
  Lines         30065    30060       -5     
  Branches       3883     3880       -3     
============================================
- Hits          15793    15752      -41     
- Misses        12807    12848      +41     
+ Partials       1465     1460       -5     
Impacted Files Coverage Δ
.../acs/commons/fam/impl/ThrottledTaskRunnerImpl.java 28.57% <0.00%> (-24.82%) ⬇️
.../com/adobe/acs/commons/fam/impl/TimedRunnable.java 66.66% <0.00%> (-7.48%) ⬇️
...adobe/acs/commons/throttling/RequestThrottler.java 51.21% <0.00%> (-1.29%) ⬇️
.../java/com/adobe/acs/commons/fam/CancelHandler.java 26.31% <50.00%> (+4.09%) ⬆️
...e/acs/commons/redirects/filter/RedirectFilter.java 75.22% <0.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2769058...ce913d6. Read the comment docs.

@badvision
Copy link
Contributor

Recommend you also set the watchdog in FAM default to -1 (meaning no watchdog, never terminate.)

It is possible to have watchdog and halt features as long as you're not breaking a commit in progress -- I advise looking at the current stack of worker threads to see if they are not in a commit somehow, and if not in a commit then allow the halt. It's a bit tricky but ultimately it could prevent other disasters as it was intended to do when I added that feature. Say someone starts something and they want to halt it because they meant to only do a dry run, and they catch it during the analysis phase so no changes are committed, etc.

@davidjgonzalez
Copy link
Contributor Author

@badvision Forced task.timeout to -1

For now, more pressing issues than trying to inspect stack traces to safely terminate. Hopefully, the processes don't get stuck, and if there are locks in AEM, Support can help understand the cause and remediate.

@kwin
Copy link
Contributor

kwin commented Aug 12, 2021

@davidjgonzalez
Copy link
Contributor Author

davidjgonzalez commented Aug 12, 2021

@kwin yup - this PR should prevent FAM from issuing a thread interrupt now; prior the timeout was long (1 hour; we bumped that up a while back) - but apparently ppl still would hit the Halt button occasionally and cause issues.

@badvision
Copy link
Contributor

badvision commented Aug 12, 2021 via email

@kwin
Copy link
Contributor

kwin commented Aug 12, 2021

Shouldn't we rather remove all usages of Thread.interrupt() instead of just disabling triggering it via UI?

@leoberliant
Copy link

@davidjgonzalez thanks for removing the halt button. While it's a useful feature, the UI change helps to avoid unnecessary problems with the renovator tool

@davidjgonzalez
Copy link
Contributor Author

@kwin yup - should almost be done, might have one more unit test to fix.. working on it.

@davidjgonzalez
Copy link
Contributor Author

@badvision / @kwin - any chance i could get a quick review so i can merge. I think this will be the last one for 5.0.8

@davidjgonzalez davidjgonzalez added this to the 5.0.8 milestone Aug 25, 2021
@davidjgonzalez davidjgonzalez merged commit fb3135b into Adobe-Consulting-Services:master Aug 25, 2021
@davidjgonzalez davidjgonzalez deleted the fix/mcp-remove-halt branch June 9, 2022 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants