See #19788. (cherry picked from commit 6be1feb1)
mentioned in commit 7fd086cc
mentioned in commit 20d84952