<リポジトリ名> がインデックス中で 2 つめのインデックス リクエストが無視される
症状
atlassian-bitbucket.log
に次のメッセージが表示される。
"90.55 "POST /scm/<PROJECT>/<REPO_NAME>/git-receive-pack HTTP/1.1" c.a.s.i.i.i.Changes etIndexingServiceImpl Request for indexing of test-repo received
2012-10-10 16:10:01,868 DEBUG [pool-4-thread-1] <USER> 843x784x1 v7lj91 10.0.90.55 "POST /scm/<PROJECT>/<REPO_NAME>/git-receive-pack HTTP/1.1" c.a.s.i.i.i.Changes etIndexingServiceImpl [<PROJECT>/<REPO_NAME>] is already indexing, ignoring second indexing request"
診断
The new commit does appear in Bitbucket Server
but there is no related to the JIRA issue
that was mentioned in the Commit Comment
. Also on JIRA
the Source Tab
on the issue does not display any information relating to the git commit.
原因
Bitbucket Server thinks it's already indexing that repository (when in fact it probably isn't). Because it thinks it's already in the process of indexing, it doesn't start indexing for the new pushes, so the commit information doesn't appear.
ソリューション
- Restart the Bitbucket Server instance - the list of what is being indexed, which it tests against to ensure it doesn't concurrently index - is maintained in memory, and will be cleared by the restart.
Then do exactly
one push
to the repository and the logs should show something like this in theLogs
:c.a.s.i.i.i.Changes etIndexingServiceImpl Request for indexing of test-repo received
- The message that says
it's already indexing
should be gone and the integration should be working perfectly.