MySQL Master Long Running `set @slave_uuid = ?`

0

My MySQL master DB is replicating to my slave just fine, but I have a long running query that does not go away after a reboot:

set @slave_uuid = ?

My show processlist doesn't have anything suspicious or long running, so I don't know where this is coming from.

Curiously, my show slave status query returns an empty list. Not sure why it wouldn't show the slave that's configured already.

Anyone have any ideas or areas I could poke on to help figure this out? I'm puzzled.

Thanks!

質問済み 4年前769ビュー
2回答
0

Probably related and what I'm currently investigating, the top wait is:

wait/synch/cond/sql/MYSQL_BIN_LOG::update_cond

Again, all related to master/slave, but still not sure what's causing this or how to clear it.

回答済み 4年前
0

Greetings,

This may be related to a bug in MySQL Performance Schema [1] if you are using any of the following MySQL versions:
=>5.6.46
=>5.7.28
=>8.0.18

It's not really a long running query, just a misrepresentation on the PI dashboard as the query is not actually executing or consuming any resources. Since, Performance Insights is capturing thread information from "performance_schema.threads", the PI console displays this query "SET @slave_uuid= ?" as being executed and consuming resources on the instance.
It doesn't really affect instance performance and is safe to be ignored. If you wish to remove it, take logical dump of the database and restore it to an RDS MySQL version not mentioned in the above list.

[1] PSI thread info not getting updated after statement execution - https://bugs.mysql.com/bug.php?id=99039

Hope this helps!

  • Dhanraj

Edited by: DhanrajAtAWS on Oct 23, 2020 10:47 AM

AWS
回答済み 4年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ