Reindex

This page contains related questions about git notes, reindex tracking and control.

Use the FAQ below to find answers to common questions.  Feel free to contact our support team (support@bigbrassband.com) if you don't see what you're looking for.

Reindex Questions

1. What does re-index do?

Re-index does 2 operations:

  • Updates local repo from remote
  • Updates local indexes which contain info about every commit
2. Is there any way to control the reindex?

In terms of kicking off the indexing based on an event, you have two options:

What other users have done is set a high interval and then configure one of those options.

3. Commits are not showing right away.  Can they show up faster?

Commits won't appear immediately since synchronization is implemented as background job (GitRevisionIndexerJob).  You can reduce the job delay down to 1 minute to schedule updates more often.

You can also configure this setting via JIRA Administration > Add-ons > Git Integration Plugin for JIRA > General page:

Repository reindex interval
4. How do I completely rebuild plugin indexes?

If you think that the Git indexes are corrupt and needed to be completely rebuilt, please do the following:

  1. Disable the Git Integration Plugin for JIRA add-on.
  2. Remove the following folders:
  3. {JIRA_HOME}/cache/indexes/plugins/jira-git-files
    {JIRA_HOME}/cache/indexes/plugins/jira-git-revisions
  4. Enable Git Integration Plugin for JIRA add-on.  The git add-on will create the above folders again.
If you have large Git repositories, please do this after prime time.
5. How do I clear the Git Integration add-on for JIRA cache manually?

If you think that the Git caches are corrupt and needed to be removed, please do the following:

  1. Disable the Git Integration for JIRA add-on.
  2. Go to <jira_home>.
  3. Delete the index:
  4. rm -rf <jira_home>/caches/indexes/plugins/jira-git-*
  5. Delete the cache:
  6. rm <jira_home>/data/git-plugin/indexed-revisions-info-cache
  7. Enable the Git add-on.
  8. Reindex all repositories:
  9. Go to Administration > Add-ons > Sidebar: Manage Add-ons > Git Integration Plugin for JIRA: Git Repositories. Click Reindex All.
If using JIRA 7, go to Administration  > Add-ons. Select Applications on the page tab. Under Git Integration Plugin for JIRA on the sidebar, select Git Repositories. Click Reindex All.
The above solution also applies to:
Commit information that are not shown for commits having issue key(s) in its message that were already indexed .
6. Is it possible to track the specified branches when reindexing?

No.  The Git Integration Plugin for JIRA add-on is designed to do a full index.

7. Is there a URL I can call to trigger fetch and re-index?  Would be nice to add as service hook to GitHub/Gitlab.

Yes  –  the following url can be used:

http://<server url>/secure/StartReindexGitRepositories.jspa?reindex=true

The reindex process won't start if reindex is already running.
8. The git notes are still not visible in JIRA.  What should I do?

Perform a Reset + Reindex of the selected repository via Git Repositories of the Git add-on. If the issue still persist, see topic, 4. How do I clear the Git Integration Plugin for JIRA cache manually?