﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33222	MySQL Connection respawns a closed connection before closing (?)	Yuta Okamoto	nobody	"I found that `is_usable()` method for MySQL, which is used in `close_if_unusable_or_obsolete()`, calls `ping()` method implemented in PyMySQL.

- https://github.com/django/django/blob/306607d5b99b6eca6ae2c1e726d8eb32b9b2ca1b/django/db/backends/base/base.py#L528

But it has `reconnect` as a parameter and its default is `True`, so it seems it automatically reconnects to the DB even when the original connection is unusable and will be closed right after the reconnection.

- https://github.com/PyMySQL/PyMySQL/blob/78f0cf99e5d5351df0821442e4dc35c49a6390c6/pymysql/connections.py#L561

Is it the intentional behavior or not?"	Bug	closed	Database layer (models, ORM)	3.1	Normal	invalid			Unreviewed	0	0	0	0	0	0
