Isolation level is always null, if queried from the connection #4798
-
Hi there, I had a problem with concurrent transactions, so I wanted to log the isolation level of the current connection using I am a bit confused about this. Here is a short reproducer: import org.eclipse.rdf4j.common.transaction.IsolationLevels;
import org.eclipse.rdf4j.repository.Repository;
import org.eclipse.rdf4j.repository.RepositoryConnection;
import org.eclipse.rdf4j.repository.sail.SailRepository;
import org.eclipse.rdf4j.sail.memory.MemoryStore;
class Scratch {
public static void main(String[] args) {
Repository sailRepository = new SailRepository(new MemoryStore());
try (RepositoryConnection connection = sailRepository.getConnection()) {
connection.begin(IsolationLevels.SERIALIZABLE);
System.out.println(connection.getIsolationLevel());
connection.commit();
}
}
} Edit: Screenshot of the debugger window attached |
Beta Was this translation helpful? Give feedback.
Answered by
hmottestad
Oct 6, 2023
Replies: 1 comment 2 replies
-
Seems like a bug. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
domkun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems like a bug.