OS WAIT ARRAY INFO: reservation count 44158203
--Thread 140053590222592 has waited at buf0buf.cc line 2576 for 7.00 seconds the semaphore:
S-lock on RW-latch at 0x7f6133d93840 created in file buf0buf.cc line 1069
a writer (thread id 140053336614656) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file row0sel.cc line 4138
Last time write locked in file /build/mysql-5.6-Clh7l4/mysql-5.6-5.6.30/storage/innobase/buf/buf0buf.cc line 3691
--Thread 140053590423296 has waited at buf0buf.cc line 2576 for 7.00 seconds the semaphore:
S-lock on RW-latch at 0x7f65889a0040 created in file buf0buf.cc line 1069
a writer (thread id 140053594236672) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file btr0cur.cc line 3592
Last time write locked in file /build/mysql-5.6-Clh7l4/mysql-5.6-5.6.30/storage/innobase/buf/buf0buf.cc line 3691
--Thread 140053638190848 has waited at buf0buf.cc line 2576 for 7.00 seconds the semaphore:
S-lock on RW-latch at 0x7f62a7ff4ac0 created in file buf0buf.cc line 1069
a writer (thread id 140053567944448) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file row0sel.cc line 3500
Last time write locked in file /build/mysql-5.6-Clh7l4/mysql-5.6-5.6.30/storage/innobase/buf/buf0buf.cc line 3691
--Thread 140053351065344 has waited at buf0buf.cc line 2576 for 5.00 seconds the semaphore:
S-lock on RW-latch at 0x7f66f9560340 created in file buf0buf.cc line 1069
a writer (thread id 140053613102848) has reserved it in mode exclusive
number of readers 0, waiters flag 1, lock_word: 0
Last time read locked in file row0sel.cc line 3220
Last time write locked in file /build/mysql-5.6-Clh7l4/mysql-5.6-5.6.30/storage/innobase/buf/buf0buf.cc line 3691------------
TRANSACTIONS
------------
Trx id counter 37364719341
Purge done for trx's n:o < 37364712342 undo n:o < 0 state: running but idle
History list length 3130
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION 0, not started
MySQL thread id 10289792, OS thread handle 0x7f60c545b700, query id 11375741031 localhost root init
show engine innodb status
---TRANSACTION 37364719194, not started estimating records in index range
mysql tables in use 1, locked 0
MySQL thread id 4846488, OS thread handle 0x7f60c294a700, query id 11375740886 -18-161. .compute.internal .18.161 kingshard statistics
select ongoing_id, incoming_id, relation_type from t_user_relation_0442 force index (idx_oir) where ongoing_id = 106243762598653952 and incoming_id = 129767936302510080
---TRANSACTION 37364715994, not started estimating records in index range
mysql tables in use 1, locked 0
MySQL thread id 4846539, OS thread handle 0x7f60c43b4700, query id 11375737688 -18-47. .compute.internal .18.47 kingshard statistics
select ongoing_id, incoming_id, relation_type from t_user_relation_0389 force index (idx_oir) where ongoing_id = 144602144992628736 and incoming_id = 28544849
---TRANSACTION 37364713857, not started estimating records in index range
mysql tables in use 1, locked 0
MySQL thread id 4448587, OS thread handle 0x7f60c450b700, query id 11375735800 -14-103. .compute.internal .14.103 kingshard statistics
select ongoing_id, incoming_id, relation_type from t_user_relation_0498 where ongoing_id = 131445973427458048 and relation_type = 1 order by insert_time desc limit 0, 200
---TRANSACTION 37364714395, not started estimating records in index range
mysql tables in use 2, locked 0
MySQL thread id 4448583, OS thread handle 0x7f60b4815700, query id 11375736291 -14-103. .compute.internal .14.103 kingshard statistics
select r.ongoing_id, r.incoming_id, r.relation_type, r.insert_time from t_user_relation_0401 as r join t_vip_user as v on r.incoming_id = v.user_id where ongoing_id = 154333576535334912 and r.relation_type = 1 order by r.incoming_id asc limit 2000请问这个 buf0buf.cc line 2576 ,buf0buf.cc line 1069,buf0buf.cc line 3691 分别是什么锁,是什么情况下触发这个锁争用?有什么方法避免该锁?