Unable to directly commit after setting TiDB to read-only

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB设置只读后无法直接commit

| username: 啦啦啦啦啦

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.1.6
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Logs/Monitoring]

As shown in the picture, after setting to read-only, the commit fails directly. Is this the expected behavior?
image