github / github/gh-mysql-conf-diff

Connection and query timeouts

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
6
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

### Problem

- [ ] If MySQL does not respond as expected, there should be a timeout on the connection and query attempts.
- [ ] Timeout should be set to a reasonable value.
- [ ] User should be able to specify a timeout value.

### Original reported issue

```
gh-mysql-config-diff-apply does not behave well when the MySQL server is running but not behaving correctly.

Details
[hostname] (part of a vitess keyspace), MySQL was in some weird state. It reported the following error message:

Error 1135: Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug

When I logged into the machine, I saw that there were hundreds of processes related to gh-mysql-config-diff-apply running.

I killed the processes, killed the mysql server, and restarted it. Things seem to be back to normal now.

I'm not sure whether this is a symptom or the cause of MySQL being in a weird state.

Either way, gh-mysql-config-diff-apply needs to be better at handling error conditions and timing out conservatively if MySQL does not behave as expected.
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。