com.atlassian.stash.exception.ServerException: Unexpected IOException traversing commit graph for XXX/xxx[2]

Atlassian JIRA | James Gorman | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    An internal message is reported incorrectly as an exception the stash logs when loading the browse branches page under the following conditions: * there is no commit graph cache for the repository * building the commit graph takes longer than the time permitted for rendering This is a logging only problem and does not effect the performance of Stash. The log error appears as: {code} Exception in thread "CachedCommitGraphSource:thread-1" com.atlassian.stash.exception.ServerException: Unexpected IOException traversing commit graph for XXX/xxx[2] at com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphSource$SingleCacheTraversalJob.run(CachedCommitGraphSource.java:396) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream$CachedCommitGraphOutputStreamIOException: Stream is closed. at com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream.write(CachedCommitGraphOutputStream.java:50) at java.io.OutputStream.write(OutputStream.java:116) at com.atlassian.util.contentcache.internal.DefaultStreamPump.doPumpSome(DefaultStreamPump.java:74) at com.atlassian.util.contentcache.internal.DefaultStreamPump.maybePumpSome(DefaultStreamPump.java:45) at com.atlassian.util.contentcache.internal.BackgroundThreadStreamPumper$PumpSomeTask.run(BackgroundThreadStreamPumper.java:85) ... 1 more {code}

    Atlassian JIRA | 3 years ago | James Gorman
    com.atlassian.stash.exception.ServerException: Unexpected IOException traversing commit graph for XXX/xxx[2]
  2. 0

    An internal message is reported incorrectly as an exception the stash logs when loading the browse branches page under the following conditions: * there is no commit graph cache for the repository * building the commit graph takes longer than the time permitted for rendering This is a logging only problem and does not effect the performance of Stash. The log error appears as: {code} Exception in thread "CachedCommitGraphSource:thread-1" com.atlassian.stash.exception.ServerException: Unexpected IOException traversing commit graph for XXX/xxx[2] at com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphSource$SingleCacheTraversalJob.run(CachedCommitGraphSource.java:396) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream$CachedCommitGraphOutputStreamIOException: Stream is closed. at com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream.write(CachedCommitGraphOutputStream.java:50) at java.io.OutputStream.write(OutputStream.java:116) at com.atlassian.util.contentcache.internal.DefaultStreamPump.doPumpSome(DefaultStreamPump.java:74) at com.atlassian.util.contentcache.internal.DefaultStreamPump.maybePumpSome(DefaultStreamPump.java:45) at com.atlassian.util.contentcache.internal.BackgroundThreadStreamPumper$PumpSomeTask.run(BackgroundThreadStreamPumper.java:85) ... 1 more {code}

    Atlassian JIRA | 3 years ago | James Gorman
    com.atlassian.stash.exception.ServerException: Unexpected IOException traversing commit graph for XXX/xxx[2]

    Root Cause Analysis

    1. com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream$CachedCommitGraphOutputStreamIOException

      Stream is closed.

      at com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream.write()
    2. com.atlassian.stash
      CachedCommitGraphOutputStream.write
      1. com.atlassian.stash.internal.commit.graph.cache.CachedCommitGraphOutputStream.write(CachedCommitGraphOutputStream.java:50)
      1 frame
    3. Java RT
      OutputStream.write
      1. java.io.OutputStream.write(OutputStream.java:116)
      1 frame
    4. com.atlassian.util
      BackgroundThreadStreamPumper$PumpSomeTask.run
      1. com.atlassian.util.contentcache.internal.DefaultStreamPump.doPumpSome(DefaultStreamPump.java:74)
      2. com.atlassian.util.contentcache.internal.DefaultStreamPump.maybePumpSome(DefaultStreamPump.java:45)
      3. com.atlassian.util.contentcache.internal.BackgroundThreadStreamPumper$PumpSomeTask.run(BackgroundThreadStreamPumper.java:85)
      3 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)
      1 frame