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
3156 multiple tag race condition #3297
Conversation
TipzCM
commented
Jan 13, 2022
- Fixed race condition issue in BaseHapiFhirDao that could result in multiple tags of the same kind being created
- Added change log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me overall!
Codecov Report
@@ Coverage Diff @@
## master #3297 +/- ##
============================================
- Coverage 82.85% 82.84% -0.01%
- Complexity 20495 20497 +2
============================================
Files 1369 1369
Lines 73626 73654 +28
Branches 11064 11066 +2
============================================
+ Hits 61001 61020 +19
- Misses 8370 8379 +9
Partials 4255 4255
Continue to review full report at Codecov.
|
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
Outdated
Show resolved
Hide resolved
hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
Show resolved
Hide resolved
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDaoTest.java
Show resolved
Hide resolved
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/r4/FhirResourceDaoR4CreateTest.java
Show resolved
Hide resolved
hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDaoTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome. Thanks for all the revisions on it, feels like a really solid improvement that will help a lot of people. :)
* 3156 fix race condition that results in multiple tags being created * 3156 added changelog * cleanup * added smile jira ticket * 3156 review fixes * review fixes * 3156 added an additional integratoin test * cleanup * review fix and master merge * threadsafe stuff * small change * upping min threads for tests to pass * changing test * test check * fix * test testing * one more update * using threadpoolutil * temporary measure * git push * all builds Co-authored-by: leif stawnyczy <leifstawnyczy@leifs-MacBook-Pro.local>
* master: Add error codes to all exceptions (#3278) 3156 multiple tag race condition (#3297) Fix globbing pattern for log files Update instance_validator.md (#3328) add needed dependendencies for mysql and mssql (#3343) Add okhttp dep 3335 allow alternative character encoding length in searchparam (#3336) Fix mdm config for single application context environment. (#3338) Validate include statements for JPA (#3331) Add okhttp dep to r5 and indicate which deps need to be included (#3332) Bump RestEasy to 5.0.2 (#3329) # Conflicts: # hapi-fhir-base/src/main/java/ca/uhn/fhir/i18n/Msg.java # hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java # hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/search/lastn/ElasticsearchSvcImpl.java # hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/dstu2/FhirResourceDaoDstu2SearchNoFtTest.java # hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/subscription/module/matcher/InMemorySubscriptionMatcherR4Test.java