Details
-
Bug
-
Resolution: Fixed
-
Low
-
2.11.2, 2.11.3
-
None
Description
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:
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