-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Test] Transaction phases measurement, system call way. #2
base: master
Are you sure you want to change the base?
[Test] Transaction phases measurement, system call way. #2
Conversation
transaction = transactionWriter.beginTxn(); | ||
// Start measurement - wait until transaction is OPEN | ||
this.stateChangedCommitting = this.getTimeStatusReached(transaction, Transaction.Status.OPEN); |
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 line is not needed - transaction
is in OPEN stated after beginTxn() is called. (it's sync method)
@@ -80,6 +86,16 @@ public PravegaBenchmarkTransactionProducer(String streamName, EventStreamClientF | |||
if (++eventCount >= eventsPerTransaction) { | |||
eventCount = 0; | |||
transaction.commit(); | |||
// Measure OPEN<->COMMITTING | |||
final long beingCommittingTime = this.getTimeStatusReached(transaction, Transaction.Status.COMMITTING); |
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.
Same as with beginTxn() - implicit call is not needed.
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.
We must wrap commit() and beginTxn() separately.
Temporary solution to measure transaction phases in system call way until "Prometheus" (MicroMeter) way would work.