[hibernate-issues] [JIRA] (HHH-5982) Flush checker logic bugs