Uh oh!
There was an error while loading. Please reload this page.
[BEAM-11982] Java Spanner - Implement IO Request Count metrics - #15493
Conversation
benEng
commented
Sep 10, 2021
@ajamato Would you help me to review the progress on this? It is still pending to add but at this point the ReadOperation is not accessible, only TransactionMy suggested approach is to add queryName to CreateTransaction Builder so I can extract queryName inside ReadFromPartitionFn process method |
Codecov Report
@@ Coverage Diff @@## master #15493 +/- ##
==========================================
+ Coverage 83.76% 83.77% +0.01%
==========================================
Files 444 444 Lines 60319 61075 +756 ==========================================
+ Hits 50528 51168 +640 - Misses 9791 9907 +116
Continue to review full report at Codecov.
|
kileys
commented
Sep 21, 2021
@ajamato Could you provide feedback? Thanks! |
| import com.google.cloud.spanner.ResultSet; | ||
| import com.google.cloud.spanner.Struct; | ||
| import com.google.cloud.spanner.TimestampBound; | ||
| import com.google.cloud.spanner.*; |
There was a problem hiding this comment.
Could you run ./gradlew spotlessApply ?
I think the preferred style is to avoid wildcard imports
| import java.util.Comparator; | ||
| import java.util.List; | ||
| import java.util.OptionalInt; | ||
| import java.util.*; |
| import com.google.cloud.spanner.TimestampBound; | ||
| import com.google.cloud.spanner.Type; | ||
| import com.google.cloud.spanner.Value; | ||
| import com.google.cloud.spanner.*; |
kileys
commented
Sep 24, 2021
Run Python PreCommit |
kileys
commented
Sep 24, 2021
@aaltay could you merge? Thanks! |
benEng
commented
Sep 27, 2021
Thank you all! |
nielm
commented
Jan 14, 2022
Note: This PR makes the GCP projectID a required parameter - which it was not before, as it could be inferred from the environment - and thus breaks backward compatibility. Specifically: BatchSpannerRead.java:175 -- the toString() is not required on the valueProvider, it should just be a get(), and createServiceCallMetric() in line 195 should handle the situation where projectID could be null |
lukecwik
commented
Jan 14, 2022
Thanks, filed https://issues.apache.org/jira/browse/BEAM-13665. @nielm is this something you are interested in fixing? |
nielm
commented
Jan 18, 2022
Filed #16547 |
Fixes regression introduced by PR apache#15493 which inadvertently caused an NPE when the projectID was not specified for a SpannerIO read or write. Adds unit test for reading/writing both with and without projectID
Fixes regression introduced by PR #15493 which inadvertently caused an NPE when the projectID was not specified for a SpannerIO read or write. Adds unit test for reading/writing both with and without projectID
Please add a meaningful description for your change here
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunnercompliance status (on master branch)Examples testing status on various runners
Post-Commit SDK/Transform Integration Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.