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

Add nested context descriptions to lock documents #1353

Merged
merged 19 commits into from
Dec 9, 2024

Conversation

apeteri
Copy link
Member

@apeteri apeteri commented Dec 6, 2024

This is required to track re-entrant locks that go more than two levels deep.

@apeteri apeteri requested review from cmark and nagyo December 6, 2024 09:18
@apeteri apeteri self-assigned this Dec 6, 2024
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 72.89720% with 29 lines in your changes missing coverage. Please review.

Project coverage is 64.10%. Comparing base (67682e6) to head (13be6a6).
Report is 22 commits behind head on 9.x.

Files with missing lines Patch % Lines
...al/snowowl/core/locks/DatastoreLockIndexEntry.java 55.26% 17 Missing ⚠️
...m/b2international/snowowl/core/locks/Lockable.java 28.57% 5 Missing ⚠️
.../snowowl/core/request/io/ImportRequestBuilder.java 0.00% 4 Missing ⚠️
...nowowl/core/locks/DefaultOperationLockManager.java 95.74% 1 Missing and 1 partial ⚠️
...onal/snowowl/core/locks/AbstractOperationLock.java 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                9.x    #1353      +/-   ##
============================================
- Coverage     64.11%   64.10%   -0.01%     
- Complexity    12619    12626       +7     
============================================
  Files          1614     1614              
  Lines         57269    57333      +64     
  Branches       5633     5637       +4     
============================================
+ Hits          36717    36756      +39     
- Misses        18195    18233      +38     
+ Partials       2357     2344      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apeteri apeteri marked this pull request as ready for review December 6, 2024 11:59
Copy link
Member

@nagyo nagyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM! with a note

...from older indices if for any reason a lock entry gets stuck
@cmark cmark merged commit a07e43d into 9.x Dec 9, 2024
1 of 2 checks passed
@cmark cmark deleted the issue/SO-6268-index-nested-lock-contexts branch December 9, 2024 13:31
@JsonSetter
Builder parentDescription(final String parentDescription) {
// lock documents with a parentDescription value should propagate their values to contexts
addContext(parentDescription);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parentDescription goes first in the list, so a contexts.add(0, parentDescription) equivalent could be used here. Although whether this is required or not will also depend on the order of the two setter calls.

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.

3 participants