-
Notifications
You must be signed in to change notification settings - Fork 242
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
Allow table cache to be bypassed by ModelBean (#2359) #2362
Open
keith-ratcliffe
wants to merge
1
commit into
release/version6.14
Choose a base branch
from
feature/bypassTableCache
base: release/version6.14
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keith-ratcliffe
force-pushed
the
feature/bypassTableCache
branch
4 times, most recently
from
May 23, 2024 17:06
98392a8
to
870b996
Compare
keith-ratcliffe
force-pushed
the
feature/bypassTableCache
branch
2 times, most recently
from
May 23, 2024 17:47
bfa7a1c
to
1f39377
Compare
keith-ratcliffe
commented
May 23, 2024
@@ -86,7 +90,7 @@ public class ModelBean { | |||
private static final long BATCH_WRITER_MAX_MEMORY = 10845760; | |||
private static final int BATCH_WRITER_MAX_THREADS = 2; | |||
|
|||
private static final HashSet<String> RESERVED_COLF_VALUES = Sets.newHashSet("e", "i", "ri", "f", "tf", "m", "desc", "edge", "t", "n", "h"); | |||
private static final HashSet<String> RESERVED_COLF_VALUES = Sets.newHashSet("e", "i", "ri", "f", "tf", "m", "desc", "edge", "t", "n", "h", "version"); |
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 fixes a preexisting bug: listModelNames
method erroneously returns "version" (i.e., colf of the "edge_key" row) as an existing model
keith-ratcliffe
force-pushed
the
feature/bypassTableCache
branch
2 times, most recently
from
May 28, 2024 17:58
b2ad0db
to
d61c1b6
Compare
keith-ratcliffe
added
bug
Something isn't working
enhancement
New feature or request
labels
May 28, 2024
ivakegg
reviewed
May 29, 2024
web-services/model/src/main/java/datawave/webservice/query/model/ModelBean.java
Show resolved
Hide resolved
web-services/model/src/main/java/datawave/webservice/query/model/ModelBean.java
Outdated
Show resolved
Hide resolved
keith-ratcliffe
force-pushed
the
feature/bypassTableCache
branch
8 times, most recently
from
June 5, 2024 14:10
792c604
to
c2e9015
Compare
* Update accumulo-utils version * Add ModelBean quickstart integration tests * Address PR feedback: Extend '/import' to enable update/replace semantics via optional path parameter, i.e., '/import/{modelName}'
keith-ratcliffe
force-pushed
the
feature/bypassTableCache
branch
from
June 5, 2024 15:57
c2e9015
to
0eb3292
Compare
apmoriarty
approved these changes
Jul 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on NationalSecurityAgency/datawave-accumulo-utils#14
The goal here is to allow certain ModelBean operations to be performed in a more timely manner. E.g., in order to replace a given query model, the current implementation requires that a user first perform a model DELETE operation and then wait for an asynchronous cache refresh, so that the subsequent model import can succeed. If the cache isn't fully refreshed, the import fails with an error, because the deleted model is still resident in the stale cache. That process can be drastically streamlined by simply allowing the table cache to be bypassed by an "admin" user
This PR also fixes a bug in the
listModelNames
method that misidentifies row:edge_key
colf:version
as a query model