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
Transaction Isolation Snapshot Exception on 2.1.1 upgrade #895
Comments
I would use the proper driver. This works for us on MSSQL. |
@jtesser So your saying that dotCMS doesn't support MSSQL Clustering or Mirroring? |
@jtesser well mirroring anyway.. |
We would recommend Oracle for DB replication etc.. It might work but we don't test/QA with the driver you are using. |
Also it appears from the message that your Isolation settings are not holding. you shouldn't get it. I would remove the clustering aspect of MSSQL for the upgrade. Upgrade get it working. Then put cluster back in place. |
@jtesser Well, this is in a development environment - no cluster or mirroring, but still need to use the sqljdbc4.jar. I think the isolation levels are not holding because we set the isolation level in a per connection basis, so each subsequent connection gets the isolation level reset. |
and that I believe is your issue. We do not expect that. Goes back to the settings I was mentioning earlier. Needs to be on the DB and let us manage the conns. Again should work if you do your work around then revert the code for running after the upgrade. No promises here but it should work. |
@jtesser okay, cool - thanks! At least I know where I stand. |
I have checked out the 2.1.1 tag and have been attempting to upgrade a 1.9.x MSSQL 2008 R2 database. I am running using the sqljdbc4.jar to support a clustered/mirrored environment. This is the error I am getting:
There must be some confusion on how the DotConnect.executeStatement() works. When using this method it creates a new connection for every statement and sets the Isolation Level to Snapshot, when it finds we are using MSSQL. I have run the needed SQL queries found on the dotcms upgrade 2.0 notes, and set the database to use READ_COMMITTED_SNAPSHOT and ALLOW_SNAPSHOT_ISOLATION. I still get this error. If I comment out the setting of the Snapshot isolation level in the getConnection() method everything updates and inserts properly. I know this isn't going to be a solution but I needed to know if that would work. The problem is because of trying to add a constraint on a table within SNAPSHOT isolation, not sure on how other upgrade tasks are dealing with this; since this seems to be the only location where this is happening.
The text was updated successfully, but these errors were encountered: