Object Store v2 lets CloudHub applications store data and states across multiple Mule components and different workers on the same application. However, based on the way the Object Store v2 is used by the different Mule components and connectors, you might run into some product limitations. This knowledge article explains such use cases and limitations. '
NOTE: This limitation applies to CloudHub applications, including both CloudHub 1.0 and CloudHub 2.0 (clustered or non-clustered).
The symptoms and the scenarios for this issue can be broadly categorized as below,
You have a CloudHub application that uses Object Store v2, to share the data and states between Mule components. During high load on the app, you see that some of the direct (ObjectStore Connector/ObjectStore REST API) or indirect (Connectors like HTTP with OAuth, Salesforce connector, B2B Connectors, Aggregator Module, etc., that internally use Object Store v2) Object Store v2 calls are failing.
You have a CloudHub application that uses Object Store v2, to share the data and states between Mule components and deployed into multiple workers. During high load on the app, you see that some of the direct (ObjectStore Connector/ObjectStore REST API) or indirect (Connectors like HTTP with OAuth, Salesforce connector, B2B Connectors, Aggregator Module, etc., that internally use Object Store v2) Object Store v2 calls are failing.
You have a CloudHub application that uses Object Store v2, to share the data and states between Mule components and deployed into single or multiple workers/replicas. You are trying to restart/redeploy the application, you see some of the direct (ObjectStore Connector/ObjectStore REST API) or indirect (Connectors like HTTP with OAuth, Salesforce connector, B2B Connectors, Aggregator Module, etc., that internally use Object Store v2) Object Store v2 calls are failing. You see that the application is unable to use the state information from the Object Store v2 and continue from where it left before restart/redeployment.
The above-mentioned behavior or issues are due to the “Distributed Locking” feature not being available in CloudHub while working with Object Store v2. As a result, during certain conditions as mentioned in the SYMPTOMS section, when multiple Mule components try to update the Object Store v2 tables at the same time, such calls will fail.
Below are some of the Knowledge Articles related to some specific use-cases and examples where the issue is caused by the same limitation explained in this article.
HTTP Request Configuration using client credential authentication[OAuth Managed Token services] running with more than one worker on CloudHub
Aggregator Module using Object Store v2 running with more than one worker on CloudHub
"Object already exists for the key" Error with Salesforce Connector Events Listener in Multiple CloudHub Workers
There is no reliable solution for this today. Please refer to the “recommendation” section below to avoid or mitigate the issue.
We encourage customers to upvote the enhancement request in Salesforce IdeaExchange:
https://ideas.salesforce.com/s/idea/a0B8W00000OTzPAUA1/objectstore-should-have-an-update-and-locking-mechanism-for-parallel-processing
001123721

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.