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

How to compile Asciidoc document with “include” sections into a single adoc file
Quicksort Java code going to infinite loop
Different type inference results with javac and ecj
JPA MappedSuperclass, Entity and OneToMany : inheritance issue
Tablet Display doesn't show the same thing as the mobile Phone
How to determine what width and height to use in Android Studio layout and a possible way to recreate this design ?
Synchronize Arraylist as buffer seems missing some data caused by multi-thread inconsistency in Java
Libgdx: incorrect center of model
Implementing oWasp CSRF Guard - The method getContextPath() is undefined for the type ServletContext
Broadcasting websocket message from other thread in jetty
How to read XLSB file using POI [duplicate]
How to do this using Thymleaf?
how to iterate on a JsObject and insert a new fields for each object? (play framwork)
Spring file configuration with conditions
JTextArea make user only be able to write on the last line in text area line CMD? [duplicate]
Liferay redirect to action URL after successful logged in

Categories

HOME
pycharm
google-api-php-client
iterator
jira
installshield
ojdbc
pivotal-cloud-foundry
windows-10-universal
vault
tomcat6
floating-action-button
imacros
moonmail
leiningen
reactive-cocoa
evopdf
contextmenu
crystal-reports-2008
arabic
qhull
virtualdub
traffic
ping
buck
log4js-node
google-cloud-endpoints-v2
fog
winrt-xaml-toolkit
avcapturesession
repo
http-referer
cloud-code
web-mining
document.write
lumberjack
optix
core-plot
google-closure
checkboxlist
wso2carbon
termination
zip4j
jquery-validate
winscp-net
directory-structure
np-complete
memory-alignment
pycaffe
time-and-attendance
phishing
bstr
gridview-sorting
fputcsv
disque
persist
goose
jfugue
rtbkit
django-unittest
coveralls
responsive-images
fluid-dynamics
graph-api-explorer
offloading
android-nested-fragment
relocation
file-copying
fpml
has-many-through
android-2.2-froyo
pyhdf
coverflow
opcache
easy-install
gridcontrol
pushbackinputstream
sqlperformance
kyotocabinet
libstdc++
online-compilation
subgurim-maps
locationlistener
servicehost
recent-documents
fluent-interface
blitz++
sproutcore-2
castle-monorail
firefox-5
compiler-specific
memory-size
putchar
caching-application-block
ntvdm.exe

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App