All Ideas

Idea Details

Post an Idea
270  Points
Open
Idea has been posted. Give it an upvote or downvote.

Allow parallel tests to run for all orgs

Apex & Visualforce

Many of our unit tests running on any SF org version Summer '13 and above are now randomly failing with the error: "UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record" when parallel unit testing is enabled. These unit tests had previously always passed.

Doing our initial investigation, we discovered that this appears to happen on our unit tests that are trying to access and update our public custom settings object - it's as though public custom setting objects are no longer isolated per unit test.

We discovered that the way around this was to check the "Disable Parallel Apex Testing" option, but that solution is not ideal for us since we have over 850 unit tests. It now takes considerably more time to verify that our development does not break any of our code.

We filed a case and the response was that the systems is “working as expected” and the only resolution was to disable parallel testing.

We are aware that other enterprise developers with a substantial number of tests are experiencing the same problem.

This idea is for Salesforce to fix the underlying problem, which was introduced in Spring 2013. If the problem was introduced by another change, then we should find another way to introduce that change without breaking an existing feature.

 

Merge Idea · Flag

  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.