"indexed" field and indexing multiple projects in parallel #3931
Replies: 3 comments 5 replies
-
Using -W to write configuration for a per project reindex is undesirable. In fact, recently I added a warning to the code This is because that might store (depends what are the other indexer options) configuration specific for the indexed project, wiping out configuration of the other projects. Also, if you run multiple per project indexers in parallel, it might corrupt the configuration. The per project workflow is described on https://github.com/oracle/opengrok/wiki/Per-project-management-and-workflow |
Beta Was this translation helpful? Give feedback.
-
So the workflow depends on the webapp to accept/apply incremental project status changes in a thread-safe manner? If the webapp is down, there seems to be no way to index in parallel and handle /etc/opengrok/configuration.xml updates w/o overwriting other project's "indexed" field? Unless I tell OpenGrok to save to a unique temporary file and then implement my own merging that would grab only a specific project's section from the temporary file, lock /etc/opengrok/configuration.xml and apply the section to it? |
Beta Was this translation helpful? Give feedback.
-
There may still be a problem. Is -U pushing the entire global config into webapp at the end of the project indexing or just the part that's related to the project? If it is pushing everything, then even if I get current config from webapp before indexing the project, and even if I just rely on -U and never do -W, there can still be issues with other project config overwrites, no? |
Beta Was this translation helpful? Give feedback.
-
Hi,
It used to be possible to reindex multiple projects in parallel by running a targeted opengrok indexer like:
... -jar opengrok.jar -R /etc/opengrok/configuration.xml -W /etc/opengrok/configuration.xml ... /PROJECT PROJECT
I think this was even suggested in some doc, I can't find this in Wiki anymore. Is this targeted incremental reindexing mode still supported?
The reason I'm asking is because I keep seeing this new per-repository "Indexed" field sporadically turned off in /etc/opengrok/configuration.xml for projects that have already been indexed. This confuses webapp causing the projects to disappear from the web page.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions