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

Indexing does not work #3999

Closed
matthias-ronge opened this issue Sep 18, 2020 · 10 comments
Closed

Indexing does not work #3999

matthias-ronge opened this issue Sep 18, 2020 · 10 comments
Labels

Comments

@matthias-ronge
Copy link
Collaborator

The indexing was started with the button "Index all" at the bottom left. The indexation remains at 25%.

Screenshot

Log messages:

[DEBUG] 2020-09-18 15:07:17.485 [IndexAllThread] IndexingService - Starting indexing of type DOCKET
[DEBUG] 2020-09-18 15:07:18.606 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:19.607 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:20.607 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:21.608 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:22.609 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:23.609 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:24.610 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:25.610 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:26.611 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:27.611 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:28.612 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:29.612 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:30.613 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:31.613 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:32.614 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:33.614 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'
[DEBUG] 2020-09-18 15:07:34.615 [IndexAllThread] IndexingService - Cannot start 'PROJECT' indexing while a different indexing process running: 'DOCKET'

The workaround is (after restarting Tomcat) to index the rows individually using the indexing button for projects, rulesets and workflows.

Goal: The indexing should run through completely.

@stefanCCS
Copy link
Collaborator

Another workaround (at least version 3.2.1-build 14.01.2021):
Press F5 in Browser to reload for each object type

@matthias-ronge
Copy link
Collaborator Author

Another workaround (at least version 3.2.1-build 14.01.2021):
Press F5 in Browser to reload for each object type

I can confirm: It needs revisiting of that page for the next type to be indexed. You may have been logged out meanwhile.

@matthias-ronge
Copy link
Collaborator Author

I can confirm that this is still a problem with release 3.4.1

@stefanCCS
Copy link
Collaborator

Well, I have to admit, that on my system (Release 3.4.0 with manually patched log4j), re-indexing works fine:
--> I have deleted the index, created the index and could start the indexing for "whole index" and this has run through all objects without any troubles.

@matthias-ronge
Copy link
Collaborator Author

Maybe related: #4947

@matthias-ronge
Copy link
Collaborator Author

Reason why browser window needs to be reloaded: See #3713 (comment)

@matthias-ronge
Copy link
Collaborator Author

The problem may be a race condition: IndexingService.getProgress() (one thread) sets currentIndexState to ObjectType.NONE, which is the condition for IndexingService.runIndexing() (another thread) to start the next indexerThread. However, getProgress() later calls indexerThread.interrupt(). If the working order of the two threads comes to be in this order, the just started thread is interrupted, instead of the thread that has already finished.

@thomaslow
Copy link
Collaborator

This was fixed by #5367. I removed the thread interrupt code (including the log message above) and replaced it with a standard Java thread pool. There should be no race conditions like that any more.

@andre-hohmann
Copy link
Collaborator

@thomaslow : Thanks a lot for your hint. That helps us to clean up the issues.

@matthias-ronge : Can this issue be closed?

@matthias-ronge
Copy link
Collaborator Author

When this was fixed, the issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants