This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
[TEX] Part 7: wiring data collection #6340
Closed
Closed
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
d5cc1e9
copy pasta
ergo14 8a3eef0
adding expectations measuring utilities & tests
ergo14 037777e
adding keyvalueservice data tracker & tests
ergo14 b0f6609
adding iterators
ergo14 0f6b859
Merge branch 'tex-pr-1c0' into tex-pr-1d2
ergo14 f829968
Merge branch 'tex-pr-1d1' into tex-pr-1d2
ergo14 0dbad63
putting it all together
ergo14 49f106e
fix constructor
ergo14 89ae9f0
progress
ergo14 2c97dbf
progress
ergo14 4c7fb19
checkpoint
ergo14 87ce54b
more wiring
ergo14 f08fd07
stuff
ergo14 7375fb4
merge conflicts
ergo14 7712ccd
merge conflict
ergo14 5e2fc66
removing obsolete code
ergo14 b51745b
removing clock and impls
ergo14 c72a8f1
removing metrics definition
ergo14 76c4e62
removing getAgeMillisAndFreezeStopwatch
ergo14 86b882a
staging
ergo14 0271726
moving ExpectationsAwareTransaction
ergo14 6b7e898
merging
ergo14 ca02903
fix
ergo14 e346fe7
adding tracking data to ExpectationsAwareTransaction interface
ergo14 80974c9
Merge branch 'tex-pr-6' into tex-draft-1
ergo14 167f461
fixes
ergo14 cbbbfaf
removing stuff
ergo14 9c75713
Merge branch 'develop' into tex-pr-6
ergo14 a60e8d9
merge
ergo14 bfa1f8d
javadoc removal
ergo14 81af9bd
javadoc removal
ergo14 7f1e296
removing config
ergo14 e399a3e
Merge branch 'tex-pr-6' into tex-draft-1
ergo14 e688370
impl
ergo14 60a607e
remove test
ergo14 8474c57
Merge branch 'tex-pr-6' into tex-draft-1
ergo14 e2892da
yml metrics spec
ergo14 9c77288
flups
ergo14 de1f185
Merge branch 'tex-pr-6' into tex-draft-1
ergo14 5552815
flup
ergo14 ce4ef5b
reportExpectationsCollectedData() no ops if called on in-progress tra…
ergo14 ab77a45
checkstyle
ergo14 986fde0
fixes
ergo14 9733e26
remove merge tokens
ergo14 247f3d8
Merge branch 'develop' into tex-draft-1
ergo14 5033e19
merge develop
ergo14 18be54b
Merge branch 'develop' into tex-draft-1
ergo14 7df9eca
pairing
ergo14 11d4c43
come one
ergo14 5390c75
yes
ergo14 dd465e3
Add generated changelog entries
svc-changelog ba63b23
Autorelease 0.773.0-rc1
ergo14 15836f4
revapi
ergo14 0c1e1f4
Autorelease 0.773.0-rc2
ergo14 2f08a45
debugging
ergo14 dfab6fb
fix
ergo14 8c7fd1a
Autorelease 0.773.0-rc3
ergo14 5680412
fix revapi
ergo14 480dae7
Autorelease 0.782.0-rc1
ergo14 8fbe122
more logs
ergo14 4238a7a
Autorelease 0.782.0-rc2
ergo14 6f2fc36
Merge branch 'develop' into tex-draft-1
ergo14 1a1873f
fixes
ergo14 2786dee
Autorelease 0.784.0-rc1
ergo14 7aaf6c2
Merge branch 'develop' into tex-draft-1
ergo14 c06bee3
changing the metric namespace name
ergo14 642761c
fix
ergo14 756e438
fix
ergo14 5598022
exclude metrics file from license
ergo14 908da7d
Autorelease 0.787.0-rc1
ergo14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...in/java/com/palantir/atlasdb/transaction/impl/ForwardingExpectationsAwareTransaction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* (c) Copyright 2022 Palantir Technologies Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.palantir.atlasdb.transaction.impl; | ||
|
||
import com.palantir.atlasdb.transaction.api.expectations.TransactionReadInfo; | ||
|
||
public abstract class ForwardingExpectationsAwareTransaction extends ForwardingTransaction | ||
implements ExpectationsAwareTransaction { | ||
|
||
@Override | ||
public abstract ExpectationsAwareTransaction delegate(); | ||
|
||
@Override | ||
public long getAgeMillis() { | ||
return delegate().getAgeMillis(); | ||
} | ||
|
||
@Override | ||
public TransactionReadInfo getReadInfo() { | ||
return delegate().getReadInfo(); | ||
} | ||
|
||
@Override | ||
public void reportExpectationsCollectedData() { | ||
delegate().reportExpectationsCollectedData(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
options: | ||
javaPackage: 'com.palantir.atlasdb.transaction.expectations' | ||
|
||
namespaces: | ||
expectations: | ||
docs: Data collection on transaction patterns | ||
metrics: | ||
bytesRead: | ||
docs: Bytes read by a transaction through Atlas kvs read calls | ||
type: histogram | ||
kvsCalls: | ||
docs: Number of Atlas kvs read calls made by a transaction | ||
type: histogram | ||
ageMillis: | ||
docs: Elapsed duration in milliseconds for a transaction | ||
type: histogram | ||
worstKvsBytesRead: | ||
docs: Most bytes read by a transaction in one Atlas kvs read call | ||
type: histogram |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Fix supplement for CoordinationAwareKnownConcludedTransactionsStore | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6380 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Fix supplement for CoordinationAwareKnownConcludedTransactionsStore | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6380 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: improvement | ||
improvement: | ||
description: Fix supplement for CoordinationAwareKnownConcludedTransactionsStore | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6380 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: feature | ||
feature: | ||
description: |- | ||
Transactional expectations: enables metrics collections for key value service read calls on transactions post-mortem. | ||
Metrics tracked per transaction: transaction age, number of bytes read, number of Atlas kvs method queries and number of bytes read for the worse Atlas kvs call (one with the most bytes read). | ||
links: | ||
- https://github.com/palantir/atlasdb/pull/6340 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You can probably reuse some of the logic from
ensureStillRunning()
- it isn't the same, but there should be similar bits you can use :)