Bug #98654 Reopen function for GSC_DEBUG_TRACE

Submitted: 19 Feb 2020 6:42 Modified: 20 Feb 2020 6:32
Reporter: Tsubasa Tanaka (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Logging Severity:S4 (Feature request)
Version:8.0.19 OS:CentOS (7.4)
Assigned to: CPU Architecture:x86

[19 Feb 2020 6:42] Tsubasa Tanaka
Description:
This is Feature Request.

MySQL uses datadir/GSC_DEBUG_TRACE for debugging Group Replication's behavior.
But there is no way reopen GSC_DEBUG_TRACE.

So once GSC_DEBUG_TRACE is fat, can't rotate and/or remove GSC_DEBUG_TRACE file without restarting Group Rplication now.

I hope to add reopening funtion for GCS_DEBUG_TRACE, like a "FLUSH GCS LOGS".

How to repeat:
$ lsof GCS_DEBUG_TRACE
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
mysqld  20530 mysql   50w   REG  202,1   116831 42112470 GCS_DEBUG_TRACE

### Once GCS_DEBUG_TRACE is too big, filesystem is exhausted, "SET GLOBAL group_replication_communication_debug_options = GCS_DEBUG_NONE" and remove the file!

$ rm GCS_DEBUG_TRACE
$ ls GCS_DEBUG_TRACE
ls: cannot access GCS_DEBUG_TRACE: No such file or directory

### But mysqld still has filehandle, not release volume of filesystem..

$ lsof -p $(pidof mysqld) | grep GCS
mysqld  20530 mysql   50w      REG              202,1     119988 42112470 /var/lib/mysql/GCS_DEBUG_TRACE (deleted)

I confirmed "STOP GROUP_REPLICATION" releases GCS_DEBUG_TRACE file and "START GROUP_REPLICATION" re-creates the file, but I need these "reopen" without restarting Group Replication.

Suggested fix:
Add function like a "FLUSH GSC LOGS"
[20 Feb 2020 6:32] MySQL Verification Team
Hello tanaka-San,

Thank you for the feature request.

regards,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.