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

[Test] Transaction phases measurement, system call way. #2

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

AndreyKoltsov1997
Copy link
Owner

Temporary solution to measure transaction phases in system call way until "Prometheus" (MicroMeter) way would work.

@AndreyKoltsov1997 AndreyKoltsov1997 added the wontfix This will not be worked on label May 17, 2021
@AndreyKoltsov1997 AndreyKoltsov1997 self-assigned this May 17, 2021
transaction = transactionWriter.beginTxn();
// Start measurement - wait until transaction is OPEN
this.stateChangedCommitting = this.getTimeStatusReached(transaction, Transaction.Status.OPEN);
Copy link
Owner Author

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);
Copy link
Owner Author

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.

Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant