github / github/gh-mysql-conf-diff
Connection and query timeouts
- Ngôn ngữ chính
- Go
- Star
- 6
- Fork
- 3
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### 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.
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ entry point gh-mysql-config-diff-apply và theo dõi cách các kết nối và truy vấn MySQL được thực hiện. Xác định vị trí phù hợp cho các timeout mặc định mang tính thận trọng và một timeout do người dùng chỉ định; công việc được xem là hoàn tất khi cả các lần thử kết nối và các lần thử truy vấn đều dừng lại một cách đáng tin cậy khi MySQL không phản hồi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- go, mysql
- Lĩnh vực
- cli, databases
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100