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

3156 multiple tag race condition #3297

Merged
merged 26 commits into from Jan 31, 2022
Merged

Conversation

TipzCM
Copy link
Collaborator

@TipzCM 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

Copy link
Collaborator

@katiesmilecdr katiesmilecdr left a 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
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #3297 (6261306) into master (ad3e282) will decrease coverage by 0.00%.
The diff coverage is 91.66%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ
...a/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java 92.53% <ø> (ø)
...main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java 88.52% <91.66%> (-0.10%) ⬇️
...r/UserRequestRetryVersionConflictsInterceptor.java 83.33% <0.00%> (-4.17%) ⬇️
...n/fhir/jpa/config/HapiFhirHibernateJpaDialect.java 75.00% <0.00%> (-3.13%) ⬇️
...java/ca/uhn/fhir/jpa/dao/TransactionProcessor.java 91.97% <0.00%> (-0.54%) ⬇️
.../ca/uhn/fhir/jpa/dao/BaseTransactionProcessor.java 88.07% <0.00%> (-0.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad3e282...6261306. Read the comment docs.

Copy link
Collaborator

@jamesagnew jamesagnew left a 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. :)

@tadgh tadgh merged commit 65398ca into master Jan 31, 2022
@tadgh tadgh deleted the 3156-multiple-tag-race-condition branch January 31, 2022 16:49
michaelabuckley pushed a commit that referenced this pull request Jan 31, 2022
* 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>
michaelabuckley added a commit that referenced this pull request Jan 31, 2022
* 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
tyfoni-systematic pushed a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Feb 22, 2022
tyfoni-systematic pushed a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Aug 4, 2022
tyfoni-systematic pushed a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Sep 6, 2022
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Nov 17, 2022
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Nov 17, 2022
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Nov 21, 2022
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Nov 21, 2022
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Feb 21, 2023
tyfoni-systematic added a commit to tyfoni-systematic/hapi-fhir that referenced this pull request Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants