-
Notifications
You must be signed in to change notification settings - Fork 16
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
Refactor to add OperationAttempt #1434
Conversation
for #1424, will need tablemetadta on the collectionschema object it was a giant mess, still is, but trying to cleanup gradually
runs, not all unit tests checked Adds OperationAttempt as a base "task" that any operation runs, example in InsertTableOperation and InsertManyCommandResolver No tests written yet.
src/main/java/io/stargate/sgv2/jsonapi/service/operation/tables/CreateTableAttempt.java
Outdated
Show resolved
Hide resolved
…TableInsertAttempt
Because there are several ways we create this, the builder is used in the work for OperationAttempt
that is where is is used
added driver profile reset logging to Debug
src/main/java/io/stargate/sgv2/jsonapi/service/cqldriver/executor/CommandQueryExecutor.java
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.
To be honest, this is big enough that I couldn't dig very deep. But I trust the test coverage, plus ability to fix things post-merge.
And we need to get this merged to avoid blocking other PRs that come after wrt createTable(), codecs.
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.
Operation Attempt and executor looks good.
LGTM
Build a general OperationAttempt and a GenericOperation that can process any type of operation attempt.
Will eventually lead to a single Operation implementation, removing a lot of duplication between the different Operation classes in how they interact with the DB.
Guide:
io.stargate.sgv2.jsonapi.service.operation
where it defines the OperationAttempt and where uses it in GenericOperationio.stargate.sgv2.jsonapi.service.operation.tables;
the tables code uses it, this has not been rolled out into Delete and Update operations yet. And no work has been done for CollectionsWhich issue(s) this PR fixes:
Fixes #1424
Checklist