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

Indexing fails on repositories having commits with null email adddress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 7.14.0
    • 5.16.4
    • Search

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync