[
https://issues.apache.org/jira/browse/JCS-245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071693#comment-18071693
]
Thomas Vandahl commented on JCS-245:
------------------------------------
Hi [~ionutv],
The thread obviously fails because of a write timeout when writing to the
network. This is the expected behaviour when network problems occur. You may
configure the timeout to a higher value, if your network is slow. In all other
cases, try to find the reasons for the network timeout _in your network_.
> Disabling lateral cache due to error
> ------------------------------------
>
> Key: JCS-245
> URL: https://issues.apache.org/jira/browse/JCS-245
> Project: Commons JCS
> Issue Type: Bug
> Components: TCP Lateral Cache
> Affects Versions: jcs-3.2.1
> Reporter: Ionut Vasilescu
> Priority: Major
>
> OIG14c uses JCS LateralTCPListener, some of the threads are crashing with the
> below exception causing operations to fail.
>
> java.io.IOException: Write timeout exceeded 1000
> at
> org.apache.commons.jcs3.engine.behavior.IElementSerializer.serializeTo(IElementSerializer.java:148)
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPSender.send(LateralTCPSender.java:170)
> at
> org.apache.commons.jcs3.auxiliary.lateral.socket.tcp.LateralTCPService.removeAll(LateralTCPService.java:401)
> at
> org.apache.commons.jcs3.auxiliary.lateral.LateralCache.processRemoveAll(LateralCache.java:228)
> at
> org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLogging.removeAllWithEventLogging(AbstractAuxiliaryCacheEventLogging.java:287)
> at
> org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLogging.removeAll(AbstractAuxiliaryCacheEventLogging.java:273)
> at
> org.apache.commons.jcs3.engine.CacheAdaptor.handleRemoveAll(CacheAdaptor.java:122)
> at
> org.apache.commons.jcs3.engine.AbstractCacheEventQueue$RemoveAllEvent.doRun(AbstractCacheEventQueue.java:358)
> at
> org.apache.commons.jcs3.engine.AbstractCacheEventQueue$AbstractCacheEvent.run(AbstractCacheEventQueue.java:216)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
> at java.base/java.lang.Thread.run(Thread.java:1583)
> Caused by: java.util.concurrent.ExecutionException: java.io.IOException:
> Broken pipe
> at java.base/sun.nio.ch.CompletedFuture.get(CompletedFuture.java:78)
> at
> org.apache.commons.jcs3.engine.behavior.IElementSerializer.serializeTo(IElementSerializer.java:144)
> ... 11 more
> Caused by: java.io.IOException: Broken pipe
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)