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

SpannerIO waits for all input before writing

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0, 2.6.0, 2.7.0, 2.8.0
    • Fix Version/s: 2.9.0
    • Component/s: io-java-gcp
    • Labels:
      None

      Description

      SpannerIO.Write waits for all input in the window to arrive before getting the schema:

      https://github.com/apache/beam/blame/release-2.5.0/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java#L841

       

      In streaming mode, this is not an issue, but in batch mode, this causes the pipeline to stall until all input is read, which could be a significant amount of time (and temp data). 

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nielm Niel Markwick
                Reporter:
                nielm Niel Markwick
              • Votes:
                1 Vote for this issue
                Watchers:
                2 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 - 50m
                  50m