-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[BEAM-14121] Fix SpannerIO service call metrics and improve tests. #17335
Conversation
Can one of the admins verify this patch? |
4 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
09e01cc
to
6ee19b2
Compare
R: @chamikaramj |
fd76e60
to
817e43e
Compare
What is the next step on this PR? |
Apologies - next steps were to rebase to master, resolving conflicts, and fix the failing checkstyle test! |
102f1b9
to
f19af58
Compare
Ready to merge: PreCommit test failures are unrelated to this PR: org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOTest.classMethod
|
Ack. Thanks Niel. |
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.
Thanks. Just nits.
...google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/BatchSpannerRead.java
Show resolved
Hide resolved
...google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/BatchSpannerRead.java
Show resolved
Hide resolved
...google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/BatchSpannerRead.java
Show resolved
Hide resolved
...ava/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java
Outdated
Show resolved
Hide resolved
...ava/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java
Outdated
Show resolved
Hide resolved
@nielm - Could you please respond to the open comments? |
Adds metrics to NaiveSpannerRead. Fixes metric resource identifiers. Refactor and improve SpannerIOReadTest unit tests to add additional coverage. Add unit tests for NaiveSpannerRead (non-partitioned read) Fix metrics for SpannerIO.Write
|
Run Java PreCommit |
Note: Java PreCommit issues are unrelated to this PR. |
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.
LGTM. Thanks.
Run Java PreCommit |
re pre-commit failure in I saw this occasionally in my local testing when my local machine was under load and have been looking into it. It does seem to be a timing related flake, unrelated to this PR. Will debug and fix separately; raised #21729
|
Fixes issues with the ServiceCallMetrics in SpannerIO:
Fixes issue: #21635
(old-jira:BEAM-14121)
//spanner.googleapis.com/projects/{projectId}/instances/{instanceId}/databases/{databaseId}/tables/{tableId}
//spanner.googleapis.com/projects/{projectId}/instances/{instanceId}/queries/{queryName}
{queryName}
SpannerIO.Read
SpannerIO.Write
NaiveSpannerRead
.SpannerIOReadTest
to add additional coverage and verify metrics valuesNaiveSpannerRead
(non-partitioned read)SpannerIOWriteTest
.GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.