Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-12188

Indexing fails on repositories having commits with null email adddress

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.16.4
    • Fix Version/s: 7.14.0
    • Component/s: Search
    • Labels:

      Description

      Issue Summary

      Indexing fails on a repository having commits with null email addresses.

      Steps to Reproduce

      This issue has been reproduced on repositories that are imported from SVN in which some of the emails are missing.

      This issue has also been reproduced manually setting "email" field into null in cwd_user table. 

      Expected Results

      When there is a case of commits with null email addresses, indexing should be working

      Actual Results

      Indexing fails with below exception in atlassian_bitbucket.log due to null email address

      2020-01-22 15:26:26,330 WARN  [commit-indexing:thread-4]  c.a.s.i.i.DefaultCommitIndexingService Commit indexer com.atlassian.bitbucket.JiraKeyIndexer caused an error 'com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException: email' and has been disabled for the remainder of this indexing run. Enable debug logging to see the exception details.
      2020-01-22 15:26:26,331 DEBUG [commit-indexing:thread-4]  c.a.s.i.i.DefaultCommitIndexingService Commit indexer error:
      com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException: email
      
      java.lang.Thread.run(Thread.java:748) ... 1 frame trimmed2020-01-22 15:26:26,387 DEBUG [commit-indexing:thread-4]  c.a.s.i.i.DefaultCommitIndexingService [SW_UGW/feed_router[1616]] Indexed 500 commits2020-01-22 15:26:26,388 ERROR [commit-indexing:thread-4]  c.a.s.internal.idx.HierarchyIndexer [SW_UGW/feed_router[1616]] Indexing failedorg.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:728) at com.atlassian.stash.internal.util.TransactionBatcher.commit(TransactionBatcher.java:90) at com.atlassian.stash.internal.util.TransactionBatcher.tick(TransactionBatcher.java:63) at 
      

      Workaround

      No Workaround

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              khughes@atlassian.com Kristy
              Reporter:
              tpothuraju@atlassian.com Tejaswini P
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Backbone Issue Sync