cancel
Showing results for 
Search instead for 
Did you mean: 

Threads in BLOCKED Status (DefaultPromotionEngineService method="updatePromotions"

Former Member

Hi All,

It seems that some time threads are blocked while doing updatePromotion().

Can you please guide me how can we fix this issue.

Thanks, -

Former Member
0 Kudos

Below is more details

="0" class="de.hybris.platform.promotionengineservices.promotionengine.impl.DefaultPromotionEngineService" method="updatePromotions(java.util.Collection, de.hybris.platform.core.model.order.AbstractOrderModel)" line="302" source_file="DefaultPromotionEngineService.java"/>

former_member537989
Contributor
0 Kudos

would be great if you add examples of such threads with stacktraces to the question.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

No answer for this?

Former Member
0 Kudos

We have also seen this issue during marketing promotions on Hybris 6.1.0.2. It seems to happen when a customer is removing an item from the cart (ajax request) and refreshing the cart page during a promotion. It can cause thread contention and is a bad experience for customers. We ran thread dumps using 'jstack -l ' command and observed these thread contention issues.

See attached thread dump.

I'm wondering if this Hybris Bug reported in the SAP Hybris Jira is related: "Cart calculation is not cluster safe when promotion is applied":

https://jira.hybris.com/browse/ECP-1189