-
Notifications
You must be signed in to change notification settings - Fork 170
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
Cohort generation on RedShift - serializable isolation violation on table Error: 1023 #1939
Comments
I've done some testing with the v1.2 RedShift driver and that seems to be a work-around for now while we see what is happening with the v2 driver. We'll need to discuss putting this into v2.10.1 potentially. |
@anthonysena did you just rolled back to last version that was used or different one? |
I ultimately went back to the last driver that we had used - the changes are here for now: https://github.com/OHDSI/WebAPI/tree/issue-1939-redshift-driver-downgrade |
@anthonysena @ssuvorov-fls worked on solution to fix the problem and go back to driver v1.0 but with IAM support. The functionality is available in "issue-1939-redshift-driver-downgrade-sdk" branch. The Redshift support was moved into separate profile "webapi-redshift", that's why you should mention in initialization and install steps. We do the following steps in our environment
For JDBC Driver, we used latest availabkle officially from AWS: Could you please check this branch in your environment? |
@konstjar @ssuvorov-fls thank you both for investigating this problem and proposing the solution in the
|
|
@anthonysena |
@ssuvorov-fls could we use one of the versions listed on https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc4-no-awssdk? The most recent is v1.2.43.1067 - not sure if that poses any problems but it is > v1.2.8. |
Noting that the latest driver is found here: https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc42-no-awssdk?repo=mulesoft-public |
@ssuvorov-fls - thanks for the update here. I tested using the @konstjar let me know if there are any objections and I can file the PR based on b1cf1d2 |
Thanks @ssuvorov-fls - can you file a PR? I'll review & approve. Thanks! |
* redshift driver was downgraded to 1.2.10.1009 (#1939) Co-authored-by: Sergey Suvorov <[email protected]>
A quick update on this issue: @chrisknoll and I worked together to figure out the RedShift JDBC drivers <= 1.2.45.1069 work when generating 2 cohorts in parallel on the same data source. When we moved to v1.2.47.1071 (and even later versions), we observed the error mentioned earlier in this issue. Here is a link to this driver on Maven Central: https://mvnrepository.com/artifact/com.amazon.redshift/redshift-jdbc42-no-awssdk |
* redshift driver was downgraded to 1.2.10.1009 (OHDSI#1939) Co-authored-by: Sergey Suvorov <[email protected]>
* redshift driver was downgraded to 1.2.10.1009 (#1939) Co-authored-by: Sergey Suvorov <[email protected]> (cherry picked from commit 5454d85)
* Implemented logic of reusable components and their tagging * renamed migration script * Reusables implementation - fixes and additions (Atlas #2623) * Cohort exit date text is wrong in Atlas > Prediction > Population settings #2622 (#1944) (cherry picked from commit af00e1c) * added versioning to reusables(#1939) * Reusables implementation (#2623) WIP * moved some permissions to role "moderator"(#1939) * fixed after review(#1939) * added endpoint for copying reusable(#1939) * created endpoints for getting entities with assigned tags(#1946) * enabled security for new endpoints(#1946) * revert server.port configuration * created endpoints for getting entities with assigned tags(#1946) - fixes Co-authored-by: Sergey Suvorov <[email protected]> Co-authored-by: Anton Abushkevich <[email protected]>
* Implemented logic of reusable components and their tagging * renamed migration script * Reusables implementation - fixes and additions (Atlas #2623) * Cohort exit date text is wrong in Atlas > Prediction > Population settings #2622 (OHDSI#1944) (cherry picked from commit af00e1c) * added versioning to reusables(OHDSI#1939) * Reusables implementation (#2623) WIP * moved some permissions to role "moderator"(OHDSI#1939) * fixed after review(OHDSI#1939) * added endpoint for copying reusable(OHDSI#1939) * created endpoints for getting entities with assigned tags(OHDSI#1946) * enabled security for new endpoints(OHDSI#1946) * revert server.port configuration * created endpoints for getting entities with assigned tags(OHDSI#1946) - fixes Co-authored-by: Sergey Suvorov <[email protected]> Co-authored-by: Anton Abushkevich <[email protected]>
I think this was resolved and could be closed? |
I'm not sure: last I recall when I tried this with Sena was that we went through about a dozen different versions of the jdbc driver, and we continue to experience the error. @anthonysena , am I recalling that correctly? |
That's correct @chrisknoll - looking at the current pom.xml, we're still using v1.2.10.1009 which does not exhibit this problem. We could note this as a "known issue" and leave it open since we've yet to address the root cause. |
Long time passed since last discussion. We have few same issues on Redshift appeared again but in pure R code using the DatabaseConnector using v2.x driver version. The DatabaseConnector package has JDBC driver v2.x. Just for visibility purposes and general discussion I would like to ask @schuemie here if there are any reporters of the same "serializable isolation violation" problem and if you can propose any solution for this? |
Expected behavior
When generating > 1 cohort on a single data source, the cohort generation processes finish without error on RedShift.
Actual behavior
Generating > 1 cohort on RedShift using WebAPI v2.10.0 generates the following exception:
Steps to reproduce behavior
Generate > 1 cohort on RedShift using WebAPI v2.10.0.
Additional Notes
As part of the v2.10.0 release, we updated the RedShift JDBC drivers: https://github.com/OHDSI/WebAPI/pull/1925/files. As a test, we can try to roll back to using a 1.2.x build to see if that allows us to work-around this problem while we do a deeper dive.
The text was updated successfully, but these errors were encountered: