Uploaded image for project: 'Apache Tez'
  1. Apache Tez
  2. TEZ-1539

Change InputInitializerEvent semantics to SEND_ONCE_ON_SUCCESS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.5.1
    • None
    • None

    Description

      Specifically for InputInitalizerEvents and VertexManagerEvents.

      Pasting comment from TEZ-1447
      In a majority of cases, events generated by different attempts of the same task will be identical - in which case just making use of the event generated by the first successful attempt is adequate. Doing something like this manes that users don't worry about retries, indices etc - and can just rely on receiving a set of events which are to be processed once the vertex succeeds.
      If different attempts of the same workload generate different events - processing is likely to be incorrect, since it's very possible for all data to be processed (VERTEX successful), then a failure and retry - which generates a different event. The initializer doesn't even run at this point, since it's already done it's work and is complete. Handling such scenarios, likely involves re-running the entire initializer and re-starting the vertex which processed the event from scratch. In situations like this, where data generated may be different, the best bet is for speculation to be disabled (when it's supported), and max-attempts to be set to 1.

      Attachments

        1. TEZ-1539.5.txt
          95 kB
          Siddharth Seth
        2. TEZ-1539.5_branch05.txt
          104 kB
          Siddharth Seth
        3. TEZ-1539.4.txt
          80 kB
          Siddharth Seth
        4. TEZ-1539.3.txt
          65 kB
          Siddharth Seth
        5. TEZ-1539.2.txt
          32 kB
          Siddharth Seth
        6. TEZ-1539.1.wip.txt
          18 kB
          Siddharth Seth

        Issue Links

          Activity

            People

              sseth Siddharth Seth
              sseth Siddharth Seth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: