Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17574

Deduplicate the process execution logic in Flink

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Not a Priority
    • Resolution: Unresolved
    • None
    • None
    • Tests
    • None

    Description

      Currently, there is a lot of process execution logic in both the production and testing components of Flink. It would be good to provide something like ProcessExecutionUtils in flink-core to achieve code deduplication.

      This class provides helper method to execute simple bash commands/scripts, with/without returning the exit value, stdout and stderr. For more complicated process, it could leverage this class or have their specific implementation, just like TestJvmProcess.

      For instance:

      • JavaBashTestBase#executeScript
      • Hardware#getSizeOfPhysicalMemoryForMac
      • MassiveStringSorting#testStringTuplesSorting
      • etc.

      Attachments

        Activity

          People

            Unassigned Unassigned
            guoyangze Yangze Guo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: