Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-5819

Could not add history item * type REPOSITORY for user *

    XMLWordPrintable

Details

    • Bug
    • Resolution: Timed out
    • Low
    • None
    • 3.2.0, 4.3.1
    • None
    • None

    Description

      Summary

      Two threads are updating the same row in the database leading to this error in the logs:

      [2013-11-04 00:12:48,618] ERROR fisheye
      Could not add history item applinks-git type REPOSITORY for user lkuzynski
      
      org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
              at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:85)
              at org.hibernate.jdbc.Expectations$BasicExpectation.verifyOutcome(Expectations.java:70)
              at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90)
              at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
              at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:262)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:183)
              at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
              at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
              at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
              at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
              at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
              at com.cenqua.crucible.hibernate.SessionState.commit(SessionState.java:118)
              at com.cenqua.crucible.hibernate.SessionState.commitAllTx(SessionState.java:73)
              at com.cenqua.crucible.hibernate.SessionState.commitTx(SessionState.java:65)
              at com.cenqua.crucible.hibernate.HibernateUtil.commitTransaction(HibernateUtil.java:293)
              at com.atlassian.fisheye.user.DefaultRecentlyVisitedManager$1.run(DefaultRecentlyVisitedManager.java:105)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
              at java.util.concurrent.FutureTask.run(FutureTask.java:138)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
      

      Steps to Reproduce

      N/A

      Expected Results

      No errors are reported in the logs.

      Actual Results

      The error is reported.

      Notes

      This error can be ignored, the required update was successful.

      No errors are visible in the user interface.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mswinarski Maciej Swinarski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: