-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve TransactionMetrics #1808
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
Improve TransactionMetrics #1808
Conversation
…e connections and also a field to indicate whether the connection is internal. Convert some of the metrics to our Counter object instead of running totals.
|
@fdb-build test windows please |
fdbclient/DatabaseContext.h
Outdated
| int64_t transactionsProcessBehind; | ||
| int64_t transactionWaitsForFullRecovery; | ||
| UID dbId; | ||
| bool internal; |
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 feel it is better to add a comment behind internal to clarify: what request are considered as internal.
The comment can be:
// true if request is from FDB components, e.g., backup and restore.
It can save time when someone reads the code one year later.
|
Not sure why CTest fails. I'm throwing it to correctness test and let's see. |
|
Correctness fails sadly. |
xumengpanda
left a comment
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.
Correctness reports segmentation faults.
One failed test case is:
-r simulation --logsize 1024MiB -f foundationdb/tests/fast/LongStackWriteDuringRead.txt -b on -s 327764438
|
Darn, this is the result an editor issue that led to some changes from another branch being left over. Fix coming shortly. |
|
The problem has been fixed. It passes 20k random tests. |
Add a random UID to TransactionMetrics in case a client opens multiple connections and also a field to indicate whether the connection is internal. Convert some of the metrics to our Counter object instead of running totals.