Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OpenGroklatestRev is not created on hg reindex #818

Closed
skozina opened this issue Apr 17, 2014 · 1 comment · Fixed by #820
Closed

OpenGroklatestRev is not created on hg reindex #818

skozina opened this issue Apr 17, 2014 · 1 comment · Fixed by #820
Labels

Comments

@skozina
Copy link

skozina commented Apr 17, 2014

I've installed OpenGrok 0.12, used default OpenGrok script where I only enabled tags:

OPENGROK_TAG="yes"

I created hg repository with one file and one directory and 3 commits. Run Opengrok index, but OpenGroklatestRev was not created.
When I added another commit and re-run the index, the result was history page with all first-run commits being displayed twice since the latest revision file was not found.

In the log of both runs I found:

2014-04-17 15:06:19.479+0200 FINE t24 FileHistoryCache.getLatestCachedRevision: not loading latest cached revision file from /var/opengrok/data/historycache/test/OpenGroklatestRev

@vladak vladak added the bug label Apr 17, 2014
@vladak
Copy link
Member

vladak commented Apr 17, 2014

That's caused by this code in FileHistoryCache.java:store():

380        if (!RuntimeEnvironment.isRenamedFilesEnabled()) {
381            return;
382        }

which prevents the method from reaching the very end:

440        storeLatestCachedRevision(repository, latestRev);
441        OpenGrokLogger.getLogger().log(Level.FINE,
442            "Done storing history for repo {0}",
443            new Object[] {repository.getDirectoryName()});
444    }

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

Successfully merging a pull request may close this issue.

2 participants