Hazelcast custom timeout for operations

322 views
Skip to first unread message

Tharinda Wickramaarachchi

unread,
May 15, 2017, 2:28:14 AM5/15/17
to Hazelcast
Hi all,

I am using "hazelcast.operation.call.timeout.millis = 100" configuration to timeout hazelcast operations.

But at the startup of the hazelcast some of the map size operation are getting timeout because of this configuration. I just only want to timeout the operations after the map load which are basically map get operations. Is there any way to add custom operation timeout for those map.get() operations ?

 Are there anyway to get this done ???


com.hazelcast.core.OperationTimeoutException: HDMapSizeOperation got rejected before execution due to not starting within the operation-call-timeout of: 100ms. Current time: 2017-05-15 11:41:47.503. Start time: 2017-05-15 11:41:44.189. Total elapsed time: 3314 ms. Invocation{op=com.hazelcast.map.impl.operation.HDMapSizeOperation{serviceName='hz:impl:mapService', identityHash=1941379381, partitionId=0, replicaIndex=0, callId=-24461, invocationTime=1494828707296 (2017-05-15 11:41:47.296), waitTimeout=-1, callTimeout=100, name=blockMap}, tryCount=250, tryPauseMillis=500, invokeCount=11, callTimeoutMillis=100, firstInvocationTimeMs=1494828704189, firstInvocationTime='2017-05-15 11:41:44.189', lastHeartbeatMillis=0, lastHeartbeatTime='1970-01-01 05:30:00.000', target=[192.168.2.204]:5701, pendingResponse={VOID}, backupsAcksExpected=0, backupsAcksReceived=0, connection=null}
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.newOperationTimeoutException(InvocationFuture.java:151)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:99)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:75)
at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
at com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:143)
at com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:73)
at com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:371)
at com.hazelcast.map.impl.proxy.MapProxySupport.size(MapProxySupport.java:628)
at com.hazelcast.map.impl.proxy.MapProxyImpl.size(MapProxyImpl.java:102)
at it.XXXX.tbx.server.MapLoader.run(MapLoader.java:36)


Regards,
Tharinda

Peter Veentjer

unread,
May 15, 2017, 4:51:22 AM5/15/17
to haze...@googlegroups.com
Hi Tharinda,

I have answered your question on stackoverflow:

http://stackoverflow.com/questions/43972820/hazelcast-custom-timeout-for-operations

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/338a345a-b230-4f4a-8314-be33415b8d96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tharinda Wickramaarachchi

unread,
May 15, 2017, 5:45:54 AM5/15/17
to haze...@googlegroups.com
Hi Peter,

I understood where use  "hazelcast.operation.call.timeout.millis" and map.getAsync. 

Thank you for your guidance.

Regards
Tharinda

--
You received this message because you are subscribed to a topic in the Google Groups "Hazelcast" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hazelcast/V5Ur7p49Dzw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hazelcast+unsubscribe@googlegroups.com.

To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.

For more options, visit https://groups.google.com/d/optout.



--
Tharinda Wickramaarachchi

Tharinda Wickramaarachchi

unread,
May 15, 2017, 5:47:11 AM5/15/17
to Hazelcast
Hi Peter,

I understood where to use  "hazelcast.operation.call.timeout.millis" and map.getAsync. 

Thank you for your guidance.

Regards
Tharinda

On Monday, May 15, 2017 at 2:21:22 PM UTC+5:30, peter veentjer wrote:
Hi Tharinda,

I have answered your question on stackoverflow:

http://stackoverflow.com/questions/43972820/hazelcast-custom-timeout-for-operations
On Mon, May 15, 2017 at 9:24 AM, Tharinda Wickramaarachchi <thar...@codegen.net> wrote:
Hi all,

I am using "hazelcast.operation.call.timeout.millis = 100 " configuration to timeout hazelcast operations.

But at the startup of the hazelcast some of the map size operation are getting timeout because of this configuration. I just only want to timeout the operations after the map load which are basically map get operations. Is there any way to add custom operation timeout for those map.get() operations ?

 Are there anyway to get this done ???


com.hazelcast.core.OperationTimeoutException: HDMapSizeOperation got rejected before execution due to not starting within the operation-call-timeout of: 100ms. Current time: 2017-05-15 11:41:47.503. Start time: 2017-05-15 11:41:44.189. Total elapsed time: 3314 ms. Invocation{op=com.hazelcast.map.impl.operation.HDMapSizeOperation{serviceName='hz:impl:mapService', identityHash=1941379381, partitionId=0, replicaIndex=0, callId=-24461, invocationTime=1494828707296 (2017-05-15 11:41:47.296), waitTimeout=-1, callTimeout=100, name=blockMap}, tryCount=250, tryPauseMillis=500, invokeCount=11, callTimeoutMillis=100, firstInvocationTimeMs=1494828704189, firstInvocationTime='2017-05-15 11:41:44.189', lastHeartbeatMillis=0, lastHeartbeatTime='1970-01-01 05:30:00.000', target=[192.168.2.204]:5701, pendingResponse={VOID}, backupsAcksExpected=0, backupsAcksReceived=0, connection=null}
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.newOperationTimeoutException(InvocationFuture.java:151)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolve(InvocationFuture.java:99)
at com.hazelcast.spi.impl.operationservice.impl.InvocationFuture.resolveAndThrowIfException(InvocationFuture.java:75)
at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:155)
at com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.retryFailedPartitions(InvokeOnPartitions.java:143)
at com.hazelcast.spi.impl.operationservice.impl.InvokeOnPartitions.invoke(InvokeOnPartitions.java:73)
at com.hazelcast.spi.impl.operationservice.impl.OperationServiceImpl.invokeOnAllPartitions(OperationServiceImpl.java:371)
at com.hazelcast.map.impl.proxy.MapProxySupport.size(MapProxySupport.java:628)
at com.hazelcast.map.impl.proxy.MapProxyImpl.size(MapProxyImpl.java:102)
at it.XXXX.tbx.server.MapLoader.run(MapLoader.java:36)


Regards,
Tharinda

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.

infor...@gmail.com

unread,
Feb 6, 2019, 6:09:28 PM2/6/19
to Hazelcast
Hi all,

Seeing how this post is almost two years old, is there now a built-in way of specifying per-get timeouts?  I understand that this operation timeout is for any operation.  I would like to be able to specify a timeout while waiting for map.get() to return the value.  Is there a built-in way to do that now?

Thanks,
Iggy

oz...@hazelcast.com

unread,
Feb 7, 2019, 8:29:48 AM2/7/19
to Hazelcast
Hi Iggy,

there is no way to specify customer operation call timeout per call. 
I wonder if it doesn't fit your case. 
Reply all
Reply to author
Forward
0 new messages