05-28-2015 06:23 AM
May 28, 2015 9:56:00 AM org.alfresco.repo.transaction.RetryingTransactionHelper doInTransaction
INFO: Retrying DefaultScheduler_Worker-9: count 0; wait: 0.0s; msg: "Incorrect number of rows affected for updateLock: LockEntity[ ID=21, sharedResourceId=21, exclusiveResourceId=21]: expected 1, actual 0"; exception: (org.springframework.dao.ConcurrencyFailureException)
innodb_locks_unsafe_for_binlog = 1
transaction-isolation=READ-COMMITTED
05-31-2015 06:53 PM
<update id="update_Lock" parameterType="Lock">
update
alf_lock
set
version = #{version},
lock_token = #{lockToken},
start_time = #{startTime},
expiry_time = #{expiryTime}
where
id = #{id}
<if test="version gt 0">
and version = (#{version} - 1)
</if>
</update>
mysql> select * from alf_lock;
+—-+———+——————–+——————+————+————+————-+
| id | version | shared_resource_id | excl_resource_id | lock_token | start_time | expiry_time |
+—-+———+——————–+——————+————+————+————-+
| 1 | 127331 | 1 | 1 | not-locked | 0 | 0 |
| 2 | 63705 | 2 | 2 | not-locked | 0 | 0 |
| 3 | 13 | 4 | 3 | not-locked | 0 | 0 |
| 4 | 13 | 5 | 3 | not-locked | 0 | 0 |
| 5 | 13 | 6 | 3 | not-locked | 0 | 0 |
| 6 | 13 | 7 | 3 | not-locked | 0 | 0 |
| 7 | 13 | 3 | 3 | not-locked | 0 | 0 |
| 8 | 23 | 8 | 8 | not-locked | 0 | 0 |
| 9 | 21161 | 9 | 9 | not-locked | 0 | 0 |
| 10 | 3185 | 4 | 10 | not-locked | 0 | 0 |
| 11 | 3185 | 5 | 10 | not-locked | 0 | 0 |
| 12 | 3185 | 6 | 10 | not-locked | 0 | 0 |
| 13 | 3185 | 12 | 10 | not-locked | 0 | 0 |
| 14 | 3185 | 14 | 10 | not-locked | 0 | 0 |
| 15 | 3185 | 15 | 10 | not-locked | 0 | 0 |
| 16 | 3185 | 10 | 10 | not-locked | 0 | 0 |
| 17 | 3185 | 4 | 18 | not-locked | 0 | 0 |
| 18 | 3185 | 5 | 18 | not-locked | 0 | 0 |
| 19 | 3185 | 6 | 18 | not-locked | 0 | 0 |
| 20 | 3185 | 12 | 18 | not-locked | 0 | 0 |
| 21 | 3185 | 19 | 18 | not-locked | 0 | 0 |
| 22 | 3185 | 20 | 18 | not-locked | 0 | 0 |
| 23 | 3185 | 18 | 18 | not-locked | 0 | 0 |
| 24 | 29 | 22 | 22 | not-locked | 0 | 0 |
| 25 | 19 | 23 | 23 | not-locked | 0 | 0 |
| 26 | 9 | 24 | 24 | not-locked | 0 | 0 |
| 27 | 9 | 26 | 26 | not-locked | 0 | 0 |
| 28 | 19 | 25 | 25 | not-locked | 0 | 0 |
+—-+———+——————–+——————+————+————+————-+
28 rows in set (0.00 sec)
mysql> show table status in alfresco where name='alf_lock';
+———-+——–+———+————+——+—————-+————-+—————–+————–+———–+—————-+———————+————-+————+———–+———-+—————-+———+
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment |
+———-+——–+———+————+——+—————-+————-+—————–+————–+———–+—————-+———————+————-+————+———–+———-+—————-+———+
| alf_lock | InnoDB | 10 | Compact | 27 | 606 | 16384 | 0 | 32768 | 0 | 29 | 2015-05-26 09:34:32 | NULL | NULL | utf8_bin | NULL | | |
+———-+——–+———+————+——+—————-+————-+—————–+————–+———–+—————-+———————+————-+————+———–+———-+—————-+———+
1 row in set (0.00 sec)
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.