<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ? in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaa-p/12076061#M409856</link>
    <description>&lt;P&gt;Hi there, we have the same problem when initialize with a percona xtra db cluster but not in single mode mysql db. we tried to set the impex and sync workers to 1, that works but 2 doesn't work. We use hybris 1811 and currently only have one hybris node. Can anyone help us?
&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 13:29:00 GMT</pubDate>
    <dc:creator>blakeberg</dc:creator>
    <dc:date>2019-02-15T13:29:00Z</dc:date>
    <item>
      <title>UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaq-p/12076060</link>
      <description>&lt;P&gt;The following query is killing the entire system. What can be the issue ? The number of tasks in the database is approximately 300.  Using hybris 6.6.0.4. Tried everything but this keep popping up time to time and blocks everything. &lt;/P&gt;
&lt;P&gt;What i tried already -
1.) task.polling.interval.min=0
2.) task.engine.query.full.executiontime.threshold =0
3.) task.engine.query.full.interval=0&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ?
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The stackstrace &lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; INFO   | jvm 1    | main    | 2018/09/19 14:52:40.695 | INFO  [hybrisHTTP82] [RestHandlerExceptionResolver] Translating exception [de.hybris.platform.servicelayer.exceptions.ModelSavingException]: org.springframework.dao.CannotAcquireLockException: query; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.695 | ERROR [hybrisHTTP82] [RestHandlerExceptionResolver] de.hybris.platform.servicelayer.exceptions.ModelSavingException: org.springframework.dao.CannotAcquireLockException: query; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.708 |         at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.709 |         at de.hybris.platform.webservicescommons.filter.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:42)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.710 | Caused by: de.hybris.platform.persistence.hjmp.HJMPException: org.springframework.dao.CannotAcquireLockException: query; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 | Caused by: org.springframework.dao.CannotAcquireLockException: query; SQL []; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 |         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 |         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 |         at de.hybris.platform.jdbcwrapper.DataSourceImpl.translateToDataAccessException(DataSourceImpl.java:1030)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 | Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:40.711 |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:952)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 | Exception in thread "TaskExecutor-master-1214-Task [8796719219638]" java.lang.IllegalStateException: Failed to lock task #8796719219638.
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 | Exception in thread "TaskExecutor-master-1215-Task [8796719186870]" Caused by: org.springframework.dao.CannotAcquireLockException: PreparedStatementCallback; SQL [UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ? ]; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 |         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 |         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 | Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.727 |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:952)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.734 | java.lang.IllegalStateException: Failed to lock task #8796719186870.
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.734 | Caused by: org.springframework.dao.CannotAcquireLockException: PreparedStatementCallback; SQL [UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ? ]; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.734 |         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.740 |         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.740 | Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:48.740 |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:952)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 | Exception in thread "TaskExecutor-master-1217-Task [8796719186870]" java.lang.IllegalStateException: Failed to lock task #8796719186870.
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 | Caused by: org.springframework.dao.CannotAcquireLockException: PreparedStatementCallback; SQL [UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ? ]; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 |         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 |         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 | Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.762 |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:952)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.767 | Exception in thread "TaskExecutor-master-1216-Task [8796719219638]" java.lang.IllegalStateException: Failed to lock task #8796719219638.
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.767 | Caused by: org.springframework.dao.CannotAcquireLockException: PreparedStatementCallback; SQL [UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ? ]; Lock wait timeout exceeded; try restarting transaction; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.767 |         at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:259)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.771 |         at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.771 | Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLTransactionRollbackException: Lock wait timeout exceeded; try restarting transaction
 INFO   | jvm 1    | main    | 2018/09/19 14:52:58.771 |         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:952)



&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaq-p/12076060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-09-20T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaa-p/12076061#M409856</link>
      <description>&lt;P&gt;Hi there, we have the same problem when initialize with a percona xtra db cluster but not in single mode mysql db. we tried to set the impex and sync workers to 1, that works but 2 doesn't work. We use hybris 1811 and currently only have one hybris node. Can anyone help us?
&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 13:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaa-p/12076061#M409856</guid>
      <dc:creator>blakeberg</dc:creator>
      <dc:date>2019-02-15T13:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE tasks SET p_runningonclusternode = ? WHERE p_runningonclusternode = ? AND PK = ? AND hjmpTS = ?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaa-p/12076062#M409857</link>
      <description>&lt;P&gt;Ok, the official sap support has a solution for this
Thank you for your information.&lt;/P&gt;
&lt;P&gt;We have identified the exception to be related with a feature in newer versions that enables jdbc interceptors. As a workaround for the initialization, please set the property jdbc.interceptor.enabled=false in your local.properties, then restart hybris &amp;amp; retry the initialization.&lt;/P&gt;
&lt;P&gt;Related links:
&lt;A href="https://jira.hybris.com/browse/ECP-3542"&gt;https://jira.hybris.com/browse/ECP-3542&lt;/A&gt;
&lt;A href="https://jira.hybris.com/browse/ECP-3500"&gt;https://jira.hybris.com/browse/ECP-3500&lt;/A&gt;
&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2019 16:32:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/update-tasks-set-p-runningonclusternode-where-p-runningonclusternode-and-pk/qaa-p/12076062#M409857</guid>
      <dc:creator>blakeberg</dc:creator>
      <dc:date>2019-03-26T16:32:04Z</dc:date>
    </item>
  </channel>
</rss>

