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

Wrong file extension for DATAFLOW_GRAPH_FILE_NAME

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.9.0, 2.10.0, 2.11.0, 2.12.0
    • 2.13.0
    • beam-model
    • None

    Description

      DATAFLOW_GRAPH_FILE_NAME

      String DATAFLOW_GRAPH_FILE_NAME = "dataflow_graph.pb"
      

      's file extension is set to .pb however it is indeed a .json. The content is generated as

      options
        .getStager()
        .stageToFile(
            DataflowPipelineTranslator.jobToString(newJob).getBytes(UTF_8),
            DATAFLOW_GRAPH_FILE_NAME);
      

      While the actual proto

      String PIPELINE_FILE_NAME = "pipeline.pb"
      

      is generated as

      options.getStager().stageToFile(serializedProtoPipeline, PIPELINE_FILE_NAME);
      

      Attachments

        Issue Links

          Activity

            People

              AaronLeeIV Aaron Li
              AaronLeeIV Aaron Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 1h 20m
                  1h 20m