core icon indicating copy to clipboard operation
core copied to clipboard

Full Re-index Process hangs after a Permissions Cascade on Host

Open DeanGonzalez opened this issue 13 years ago • 17 comments

Reproduced on release-2.3.2 on mysql macosx and windows/postgres instance

I have reproduced this 4 times now by following these steps... not sure what exacly caused it, but I think it is the permissions cascade on a role, and then the re-index:

1)Bring up clean starter, create a new role "webmaster" 2) From the role, click on permissions, choose the demo host add it and give the role publish permissions on everything and CASCADE the permissions so that it applies to every child object... give the cascade time to finish (I have it 15 minutes on my last test). 3) Try to re-index... eventtually right between 60 and 80% complete the re-index will freeze up and if you look in the log... it seems to be trying to re-index the same object, over and over and over... index never completes.

http://screencast.com/t/VILCfrxtBU

DeanGonzalez avatar Jun 06 '13 21:06 DeanGonzalez

Data Point: Reproduced locally on a MySQL install. Here is a thread dump.

https://gist.github.com/wezell/4e35459158fad5ea87d4

wezell avatar Jun 07 '13 13:06 wezell

couldn't reproduce on master. weird

dotjorgeu avatar Jun 07 '13 13:06 dotjorgeu

Nothing in mysql - seems like ES is hung up.

https://gist.github.com/wezell/ff71f41cf5b878b09a44

wezell avatar Jun 07 '13 14:06 wezell

@wezell weird I do not see any of your threads hung. What versions of MySQL is everyone running?

jtesser avatar Jun 07 '13 14:06 jtesser

maybe a switch over issue?

jtesser avatar Jun 07 '13 14:06 jtesser

@JT Server version: 5.6.10-log MySQL Community Server

dotcmsCodeReview avatar Jun 07 '13 14:06 dotcmsCodeReview

Definitely seems like a switch over issue: The index is finished building

  • look at the item counts.

http://screencast.com/t/tL2qCDXPYaeH

wezell avatar Jun 07 '13 14:06 wezell

also @wezell what branch are you in?

jtesser avatar Jun 07 '13 14:06 jtesser

@JT I'm in master-2.5

dotcmsCodeReview avatar Jun 07 '13 14:06 dotcmsCodeReview

I tested the latest released zip version (2.3.1) and it did not happen there running postgres, but it did happen for me running release-2.3.2 on postgres

bryanboza avatar Jun 07 '13 14:06 bryanboza

hey guys please try to reproduce again in that branch. first do a $ git fetch to make sure you get all the new commits. then get my commit with $ git cherry-pick e547b5f then deploy and run. let's see if it makes any difference.

dotjorgeu avatar Jun 07 '13 16:06 dotjorgeu

No I will merge for them :-)

jtesser avatar Jun 07 '13 16:06 jtesser

When we see this come thru as needs QA we will know it is merged and test again... on standby

DeanGonzalez avatar Jun 07 '13 16:06 DeanGonzalez

Merged to master,master-2.5,release-2.3.2

jtesser avatar Jun 07 '13 16:06 jtesser

@DeanGonzalez this is merged to all the branches.

jtesser avatar Jun 07 '13 16:06 jtesser

I have tried 3 times from clean starter... git branch -l, git status all check out... but this is still not working on mysql... re-index still does not finish.

DeanGonzalez avatar Jun 07 '13 18:06 DeanGonzalez

I created new issue for mysql fix: https://github.com/dotCMS/dotCMS/issues/3042

DeanGonzalez avatar Jun 07 '13 18:06 DeanGonzalez