Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

System Error when delete all items in trash

Deleted user July 23, 2020

Hi

In my example, I have 13 items in my trash the action crashes with this error:

Cause

org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1; nested exception is org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
    at org.springframework.orm.hibernate5.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:287)

caused by: org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
    at org.hibernate.jdbc.Expectations$BasicExpectation.checkBatched(Expectations.java:67)

Any idea, why this gives an error?

Thanks in advance

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2020

Hello Benjamin,

Welcome to Atlassian Community. It's nice to meet you!

It appears that you've run into the following bug:

  • CONFSERVER-57823 "Purge All" space trash fails with "org.hibernate.StaleStateException" due to Confluence's handling of CustomContentEntity

The workaround is to purge the affected page individually, and then you can empty the rest of the trash. If you need help narrowing down which page is causing the issue, the bug ticket above mentions some ways to do that.

Let me know if you have any trouble.

Take care,

Shannon

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.6.0
TAGS
AUG Leaders

Atlassian Community Events