Bug #108706 improve GR error message
Submitted: 7 Oct 2022 11:07 Modified: 7 Oct 2022 12:06
Reporter: Simon Mudd (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Group Replication Severity:S4 (Feature request)
Version:8.0.30 OS:Any
Assigned to: CPU Architecture:Any
Tags: group_replication

[7 Oct 2022 11:07] Simon Mudd
Description:
I see this in logging:

2022-10-06T05:01:10.576060Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.'
2022-10-06T05:01:42.577875Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.'
2022-10-06T05:02:14.593657Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.'
2022-10-06T05:02:24.594231Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.'
2022-10-06T05:03:04.614942Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.'

The error is not very helpful as it does not provide any useful information to me.

How to repeat:
Setup GR and you might see the log entries above.

Suggested fix:
Improve logging to show:
- which server was being talked to. I guess one of the other cluster members.
- if possible which action was being attempted, unless "retrieving server information" is the action.  If that's the case what information.
- potentially if you can provide further details of WHY you can't retrieve the information and report any error that was obtained while trying to do that.

I would expect to see a line like:

2022-10-06T05:03:04.614942Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error retrieving server information.' from <hostname_or_ip>:<port>: <error or other message to provide further details>