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

Ensure EntityStore is not being close prematurely #15

Open
kerbymart opened this issue Mar 1, 2024 · 1 comment
Open

Ensure EntityStore is not being close prematurely #15

kerbymart opened this issue Mar 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@kerbymart
Copy link
Member

The error message "Attempt to read closed log" suggests that there is an attempt to read from a log file that has already been closed. This can happen if the database connection was closed prematurely or if there is a concurrency issue where multiple threads are trying to access the database simultaneously.

In the context of JetBrains Xodus, this error can occur when performing operations on the EntityStore after it has been closed. Ensure that the EntityStore is not being closed prematurely. Also, make sure that all database operations are properly synchronized if they are being accessed from multiple threads. Identify where and why the EntityStore is being closed.

[main] INFO com.divroll.datafactory.conditions.PropertyNearbyConditionClientPerfTest - Time to complete query (ms): 141
[main] INFO jetbrains.exodus.env.EnvironmentImpl - Environment[/tmp/test/b38100ad-62d7-4e24-8a84-c0d47bf0ddf9] is active: 1 transaction(s) not finished
[EntityStoreSharedAsyncProcessor0] ERROR jetbrains.exodus.entitystore.EntityStoreSharedAsyncProcessor - Attempt to read closed log
java.lang.IllegalStateException: Attempt to read closed log
	at jetbrains.exodus.log.DataCorruptionException.checkLogIsClosing(DataCorruptionException.java:38)
	at jetbrains.exodus.log.BlockNotFoundException.raise(BlockNotFoundException.java:27)
	at jetbrains.exodus.log.BlockNotFoundException.raise(BlockNotFoundException.java:32)
	at jetbrains.exodus.log.Log.readBytes(Log.kt:782)
@kerbymart kerbymart added the bug Something isn't working label Mar 1, 2024
@kerbymart
Copy link
Member Author

kerbymart commented Mar 1, 2024

It seems it is related to the releasing of the database at:

@AfterClass
public static void afterAll() {
    dataFactory.release();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant