Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal attempt to associate a collection with two open sessions in au.org.ala.spatial.Task.history #240

Open
vjrj opened this issue Aug 8, 2024 · 3 comments
Assignees
Milestone

Comments

@vjrj
Copy link
Contributor

vjrj commented Aug 8, 2024

Trying to copy a first layer for a remote server I get:

"1723111557690": "failed (id:13): Illegal attempt to associate a collection with two open sessions. Collection : [au.org.ala.spatial.Task.history#13]; nested exception is org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions. Collection : [au.org.ala.spatial.Task.history#13]",

image

It sounds like a concurrent modification of a task.

@adam-collins
Copy link
Collaborator

When I attempt to reproduce the error by using a restarted thumbnail task, it succeeds with out error. I do not know if something else fixed it or if the process to reproduce the error differs.

@vjrj
Copy link
Contributor Author

vjrj commented Jan 29, 2025

I was doing a layer copy (that do a thumbails task too). See the time in these two tasks:

Image

@adam-collins adam-collins self-assigned this Feb 10, 2025
@adam-collins adam-collins added this to the 2.2.0 milestone Feb 10, 2025
@adam-collins
Copy link
Collaborator

I managed to reproduce it using the admin URL on the / page that starts the Thumbnail task. I have added a fix for this specific use case. I could not reproduce it with layer copy.

The plan is to run more tests in a clean environment, once available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants