Affects Version/s: 6.2.X EE, Master
Description: If we empty Recycle Bin data in UI, it will delete those right datas even though one data can't be delete (due to exception occur). However, when CheckEntryMessageListener process failed, all datas won't deleted.
1. Create one blog "blogEntry" (entryId=32843) and document "dlFileEntry".
2. Remove them to Recycle Bin.
3. Directly delete "blogEntry" from blogsentry table.
delete from blogsentry where entryId=32843
4. Go to Recycle Bin. Execute empty the Recycle Bin.
Result: "dlFileEntry" will be deleted and the below error printed in log. It can explain that even though the delete process failed, but document can be deleted successful.
5. Create another document "dlFileEntry1", and then remove it to Recycle Bin.
6. Close bundle. Set the below properties in portal-ext.
7. After 3 mins, restart bundle.
8. When com.liferay.trash.web.internal.messaging.CheckEntryMessageListener executes, it should delete "blogEntry" and "dlFileEntry1" from Recycle Bin. However, due to "blogEntry" data is lost from blogsentry table. It will deleted failed. This affects "dlFileEntry1" can't be deleted. This is inconsistent with empty the Recycle Bin.
Expected behavior: Even though "blogEntry" can't be deleted, it shouldn't affect "dlFileEntry1" can't be deleted. That is to say, one delete model process failed, it shouldn't affect the whole delete process failed. For example, when CheckEntryMessageListener executes and there are 10,000 datas matched with this delete situation. If due to one data exist data integrity issue so that it can't be deleted, and this will cause other 9999 datas can't deleted. It is better for me to let other 9999 datas deleted successful.