The UCCE adapter is failing to retrieve data even though data has been written to Palettes.
In the server.log you may see that although data is being stored in cache, still when retrieve data is called using the key the matching value is not found. A "Host rejected request" error may be seen on the remote side.
This can be due to the lifetime of the palettes cache configured in the xml. In this example the lifetime of cache entries is set to 2 seconds as seen in the domain.xml
<replicated-cache name="UCCEAdapterDataCache" mode="SYNC" start="EAGER"> <expiration max-idle="600000" lifespan="2000"/> <file-store shared="false" preload="true" passivation="false" fetch-state="true" purge="false" singleton="false"/> </replicated-cache>
The lifespan should be set to -1 so that the max-idle time determines the expiration.
The UCCEAdapterDataCache should be found at https://SERVER:9990/console/App.html#replicated-cache
Make sure you have navigated to:
profiles (top right) -> profile HA (top left) -> infinispan (left menu) -> distributed cache -> then scroll through the list using arrows under list of 4 caches
Once you find the UCCEAdapterDataCache edit and set the lifespan to -1 and then save.
You may need to restart fas for the change to take effect.
Note: A 2 second time out may be reasonable in some scenarios as placing the data into palettes and then retrieving it are generally done at the same time but due to network round trip times, the retrieval may take over the 2 seconds.
Article is closed for comments.