Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13665

Spanner IO request metrics requires projectId within the config when it didn't in the past

Details

    • Bug
    • Status: Resolved
    • P1
    • Resolution: Fixed
    • 2.34.0, 2.35.0
    • 2.36.0
    • io-java-gcp
    • None

    Description

      https://github.com/apache/beam/pull/15493 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

      Also SpannerIO.java:1683 has a similar issue with the Write transform.

      Attachments

        Issue Links

          Activity

            People

              nielm Niel Markwick
              lcwik Luke Cwik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m