Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
N/A
-
None
Description
mariadb-admin flush-status runs FLUSH STATUS command. After MDEV-33145, apparently it should run FLUSH GLOBAL STATUS instead, it would be closer to what it did before. I don't believe there is a need for a new command in the tool, as FLUSH [SESSION] STATUS is simply meaningless in this context.
--connect (con1,localhost,root,)
|
--connect (con2,localhost,root,)
|
--connect (con3,localhost,root,)
|
--disconnect con1
|
--disconnect con2
|
--disconnect con3
|
|
--connection default
|
show status like 'Max_used_connections'; |
show global status like 'Max_used_connections'; |
|
--echo #
|
--echo # Running mariadb-admin flush-status
|
--echo #
|
--exec $MYSQLADMIN flush-status
|
|
show status like 'Max_used_connections'; |
show global status like 'Max_used_connections'; |
Before MDEV-33145:
11.4 53a359cf0d8e5501e64eaa8a294ed42c4e939a78 |
show status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
show global status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
#
|
# Running mariadb-admin flush-status
|
#
|
show status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 2
|
show global status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 2
|
After:
bb-11.5-MDEV-33145-flush-global-status dd182933a1dac15cb592990eb5fb04b9030a6a92 |
show status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
show global status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
#
|
# Running mariadb-admin flush-status
|
#
|
show status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
show global status like 'Max_used_connections'; |
Variable_name Value
|
Max_used_connections 4
|
Attachments
Issue Links
- is caused by
-
MDEV-33145 Add FLUSH GLOBAL STATUS
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Description |
{{mariadb-admin flush-status}} runs {{FLUSH STATUS}} command. After {code:sql} --connect (con1,localhost,root,) --connect (con2,localhost,root,) --connect (con3,localhost,root,) --disconnect con1 --disconnect con2 --disconnect con3 --connection default show status like 'Max_used_connections'; show global status like 'Max_used_connections'; --echo # --echo # Running mariadb-admin flush-status --echo # --exec $MYSQLADMIN flush-status show status like 'Max_used_connections'; show global status like 'Max_used_connections'; {code} Before {code:sql|title=11.4 53a359cf0d8e5501e64eaa8a294ed42c4e939a78} show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 # # Running mariadb-admin flush-status # show status like 'Max_used_connections'; Variable_name Value Max_used_connections 2 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 2 {code} After: {code:sql|title=bb-11.5- show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 # # Running mariadb-admin flush-status # show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 {code} |
{{mariadb-admin flush-status}} runs {{FLUSH STATUS}} command. After {code:sql} --connect (con1,localhost,root,) --connect (con2,localhost,root,) --connect (con3,localhost,root,) --disconnect con1 --disconnect con2 --disconnect con3 --connection default show status like 'Max_used_connections'; show global status like 'Max_used_connections'; --echo # --echo # Running mariadb-admin flush-status --echo # --exec $MYSQLADMIN flush-status show status like 'Max_used_connections'; show global status like 'Max_used_connections'; {code} Before {code:sql|title=11.4 53a359cf0d8e5501e64eaa8a294ed42c4e939a78} show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 # # Running mariadb-admin flush-status # show status like 'Max_used_connections'; Variable_name Value Max_used_connections 2 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 2 {code} After: {code:sql|title=bb-11.5- show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 # # Running mariadb-admin flush-status # show status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 show global status like 'Max_used_connections'; Variable_name Value Max_used_connections 4 {code} |
Assignee | Michael Widenius [ monty ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Fix Version/s | 11.5.1 [ 29634 ] | |
Fix Version/s | 11.5 [ 29506 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |