asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Till Westmann (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ASTERIXDB-1385) Swallowed "java.net.SocketException: Socket closed" exception in feeds test using socket adapter
Date Fri, 01 Apr 2016 16:36:25 GMT

    [ https://issues.apache.org/jira/browse/ASTERIXDB-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15221937#comment-15221937
] 

Till Westmann commented on ASTERIXDB-1385:
------------------------------------------

I think that it makes sense to log it, as - even if we are able to recover from it - handling
exceptions can impact performance and so it can help to identify performance issues. However,
it would be helpful to add some information in which context it was caught :)

> Swallowed "java.net.SocketException: Socket closed" exception in feeds test using socket
adapter
> ------------------------------------------------------------------------------------------------
>
>                 Key: ASTERIXDB-1385
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1385
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: Feeds
>            Reporter: Ildar Absalyamov
>            Assignee: Abdullah Alamoudi
>            Priority: Minor
>
> When executing socket-based feed test (e.g. runtiments/feeds/feed-push-socket) the following
exception gets written into the output. The exception is swallowed and does not seem to break
anything, but if that's completely normal situation should the stacktrace be even logged?

> {noformat}
> java.net.SocketException: Socket closed
> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:170)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:141)
> 	at org.apache.asterix.external.input.stream.SocketServerInputStream.read(SocketServerInputStream.java:73)
> 	at org.apache.asterix.external.input.stream.AsterixInputStreamReader.read(AsterixInputStreamReader.java:92)
> 	at org.apache.asterix.external.input.stream.AsterixInputStreamReader.read(AsterixInputStreamReader.java:65)
> 	at org.apache.asterix.external.input.record.reader.stream.SemiStructuredRecordReader.hasNext(SemiStructuredRecordReader.java:84)
> 	at org.apache.asterix.external.dataflow.FeedRecordDataFlowController.start(FeedRecordDataFlowController.java:62)
> 	at org.apache.asterix.external.dataset.adapter.FeedAdapter.start(FeedAdapter.java:36)
> 	at org.apache.asterix.external.feed.runtime.AdapterExecutor.run(AdapterExecutor.java:59)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message