Response timeout

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Response timeout

Gaurav
I am getting this error with swift object store..
Looks like response timeout..what is timeout value for response?
Please help..

================================================== stage: s1 ==================================================
---------------------------------- mission: M5E4DA7F3B3, driver: driver1 ----------------------------------
2013-09-03 17:24:19,197 [INFO] [Log4jLogManager] - will append log to file /root/0.3.1.2/log/mission/M5E4DA7F3B3.log
================================================== stage: s2 ==================================================
---------------------------------- mission: M1E4DA9DE9B, driver: driver1 ----------------------------------
2013-09-03 17:24:26,924 [INFO] [Log4jLogManager] - will append log to file /root/0.3.1.2/log/mission/M1E4DA9DE9B.log
2013-09-03 17:28:00,747 [ERROR] [Writer] - fail to perform write operation
com.intel.cosbench.api.storage.StorageTimeoutException: java.net.SocketTimeoutException: Read timed out
    at com.intel.cosbench.api.swift.SwiftStorage.createObject(SwiftStorage.java:161)
    at com.intel.cosbench.driver.operator.Writer.doWrite(Writer.java:94)
    at com.intel.cosbench.driver.operator.Preparer.operate(Preparer.java:95)
    at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:53)
    at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:175)
    at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:161)
    at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:118)
    at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44)
    at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:679)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:146)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:111)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:282)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:216)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:298)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
    at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:647)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
    at com.intel.cosbench.client.swift.SwiftClient.storeStreamedObject(SwiftClient.java:218)
    at com.intel.cosbench.api.swift.SwiftStorage.createObject(SwiftStorage.java:159)


Regards,
Gaurav
Reply | Threaded
Open this post in threaded view
|

Re: Response timeout

ywang19
Administrator

There is one parameteer for swift which extends the timeout as following:

  <storage type="swift" config="timeout=300000" /> 

.

Otherstorage types except none and mock also support this parameter.

Hope it helps.

-Y.G.