java


Hazelcast custom timeout for operations


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 ?
Is there any other way 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

If you are trying to control waiting on the result of e.g. a map.get; you could have a look at the asynchronous version like map.getAsync. It returns a future and you can control how long you want to wait for a result.
Modifying the call timeout is not advised.


Related Links

gradle wrapper + gradle 3.0 + Spring Boot
How to prevent a jar from my dependency module to load and use my local Jar
String errors at array Splitting Parts
set background to my canvas not work
Collect all objects from a Set of Sets with Java Stream
NoClassDefFoundError for ClasspathRootSelector using JUnit 5
compile 'com.android.support:appcompat-v7:23.2.0' makes some resources error
Authentication client-server in Eclipse Milo
How to test ManagedBean using Arquillian?
How to obtain the bounds of the axis box in a JFrame?
JSON + picasso Images taking too much time to load
How do I prevent creating duplicate methods for member variables?
How to get easy rules .jar file?
Using different versions of the same JAR at runtime
spring-boot log runtime exceptions from new thread
Count no of lines between two lines

Categories

HOME
clips
oracle11g
tizen
drivers
android-4.4-kitkat
elm
twitter-bootstrap-4
acquia
datastax-java-driver
bs4
webrequest
session-variables
metatrader4
u-sql
postgres-xl
caml
ghc
pc
oxyplot
conemu
css-animations
icloud-api
emgucv
apache-commons-io
filezilla
objectanimator
socialengine
google-sites-2016
catel
textmate
geopositioning
rotational-matrices
revolution-slider
leading-zero
lumberjack
sas-visual-analytics
sfdc
node-gyp
outlook-api
http-redirect
total-commander
flickr-api
chain-builder
filepicker
upstart
revapi
dotnetzip
lowpass-filter
csound
nodebb
pdfclown
account-kit
url-pattern
vmware-tools
probability-density
slicknav
fody
login-control
transmitfile
google-web-starter-kit
player
storekit
disque
persist
actionbardrawertoggle
sdf
nessus
itextpdf
prerequisites
deis
ionic
unity3d-gui
dundas
clipperlib
truevault
offloading
operator-precedence
typekit
coldbox
angularjs-ng-click
titanium-modules
gulp-less
expected-exception
doskey
algebraic-data-types
mbr
.aspxauth
jmapviewer
google-cloud-save
easy-install
sqlperformance
coderush
gdata-api
onsubmit
uiviewanimation-curve
work-stealing
netdna-api
sudzc
gamma
substrings
post-build





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm