oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

Do not report missing projects for this first run #1992

Closed tulinkry closed 5 years ago

tulinkry commented 6 years ago

When running for the first time (no configuration.xml file) the indexer complains multiple times after this piece of code

if (project != null) {
    if (env.getConfigHost() != null && env.getConfigPort() > 0) {
        Message m = Message.createMessage("project");
        m.addTag(project.getName());
        m.setText("indexed");
        m.write(env.getConfigHost(), env.getConfigPort());
    }

    // Also need to store the correct value in configuration
    // when indexer writes it to a file.
    project.setIndexed(true);
}

with

opengrok_1  | 26-Jan-2018 08:13:11.253 WARNING [configurationListener] org.opensolaris.opengrok.configuration.messages.ProjectMessage.applyMessage cannot find project x to mark as indexed
opengrok_1  | 26-Jan-2018 08:13:17.596 WARNING [configurationListener] org.opensolaris.opengrok.configuration.messages.ProjectMessage.applyMessage cannot find project y to mark as indexed

I wonder if there is a way how to avoid this cause it seems obvious for me that there is no such project but can be a little bit misleading for people with no insights.

tulinkry commented 5 years ago

Is this still relevant?

tulinkry commented 5 years ago

I think this isn't happening anymore. We even use a different approach.