Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.2.X, 7.3.X, Master
-
7.3.x, 7.2.x
-
Committed
-
3
-
Performance
Description
Reindex is triggered every time upon user login when admin.sync.default.associations is enabled. This is a performance issue only, since the portal functions correctly regardless of the reindex.
Steps to reproduce:
- Set the property admin.sync.default.associations to true and startup the portal
- Add DEBUG logging for com.liferay.portal.search.internal.index.UpdateDocumentIndexWriterImpl
- Create a new user "testUser".
- Verify you see an entry in the logs which looks something like this:
2021-06-11 20:14:01.902 DEBUG [http-nio-8080-exec-2][UpdateDocumentIndexWriterImpl:63] Document {... screenName=[testUser], ...}
This means the user was created and reindexed
5. Login as "testUser"
6. Verify you see a similar entry to step 4
7. Logout and repeat steps 5 and 6
Expected results:
Since the default groups/roles/user groups have not been modified, nor have the testUser's associations to said defaults, the testUser does not need any associations added, and therefore testUser does not need to be reindexed upon login.
Actual Results:
All users are reindexed upon login, even if they do not have any new associations.
Reproduced on branch and master:
7.2.x: ace4b728b99c4e32f93a70229cb93a9c5c4b4e74
Master: e06bc300220060e82df1420079ab800fab71ce85
Attachments
Issue Links
- causes
-
LPS-138877 No My Workflow Tasks Personal Menu after delete User of Default User Associations
- Closed