I am getting this error on cloudhub "org.mule.runtime.api.store.ObjectAlreadyExistsException: Object already exists for the key".
I am using object store in my application. Where I am checking if the value is available in object store and then store it only if it is not available. I have set the option to "Fail if present" as false, still seeing this error.
How to resolve this?
I observed that this issue is coming only when I am using two workers in cloudhub.
Thanks in advance.
Edited: Using Object Store connector and mule 4.3. I am checking in object store using Contains if value exists. If it does then Retrieving the value else Storing it to OS.



The error message indicates that the application is using the default persistent object store. For sharing to multiple workers you should instead use the
_defaultUserObjectStorewhich is in memory. Details are in: https://docs.mulesoft.com/object-store/osv2-faq#how-are-object-store-entries-divided-among-workers