-
Notifications
You must be signed in to change notification settings - Fork 54
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 isolation option to the vault lock #754
Conversation
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.
Please, clarify the points raised.
73541a3
to
f3d4c82
Compare
@alexandrosfilios, can you add a performance test to measure how many transaction per second you can commit while producing RWSets? |
b096055
to
61be65e
Compare
Yes writing perf tests as part of another pr |
@@ -82,15 +82,6 @@ func NewInterceptor[V driver.ValidationCode]( | |||
} | |||
|
|||
func (i *Interceptor[V]) IsValid() error { | |||
tx, err := i.vaultStore.GetTxStatus(context.Background(), i.txID) |
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.
why is this check not needed anymore?
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.
because the db makes the check
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.
And this method is only needed in tests
@@ -51,18 +51,13 @@ func newTxCodePersistence(readDB *sql.DB, writeDB common.WriteDB, tables common. | |||
|
|||
func (db *VaultPersistence) Store(ctx context.Context, txIDs []driver.TxID, writes driver.Writes, metaWrites driver.MetaWrites) error { | |||
span := trace.SpanFromContext(ctx) | |||
span.AddEvent("start_store") | |||
defer span.AddEvent("end_store") | |||
span.AddEvent("Start store") |
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.
the rest of the code still uses the convention of separating words with _
and keeping everything lowercase. Was this intentional?
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.
Yes I am changing them all slowly because it is more readable on the UI side of Jaeger
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.
I left some questions to be checked just to make sure the semantic is still correct. I think an interface is not needed anymore.
61be65e
to
f1a0818
Compare
Signed-off-by: Alexandros Filios <[email protected]>
Signed-off-by: Alexandros Filios <[email protected]>
f1a0818
to
de9cefa
Compare
No description provided.