Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Issue with Block this step until steps finish

  1. #1
    Join Date
    Feb 2016
    Posts
    12

    Default Issue with Block this step until steps finish

    Hi All,

    I have a report where I am deleting from a table and then adding records to the same table. The following are the steps:
    1) Delete from table
    2) Block this step until steps finish (inbuilt step in Pentaho DI).
    3) Insert into the same table.

    The job calling this report failed in production because of deadlock on this table. There was no other job using this table. The step 1 and step 3 caused the deadlock to happen. Can some one please help me telling the significance of step 2. Why didn't it work. Had it worked the deletion and insert statements would not have occurred simultaneously. Please suggest to make sure that the steps don't run in parallel. I am deciding to separate the steps into different jobs. But want to know why the step 2 doesn't work. Am I missing something in configuration.

    Thanks,
    Megha

  2. #2
    Join Date
    Apr 2008
    Posts
    4,696

    Default

    Quote Originally Posted by Megha_Punj View Post
    But want to know why the step 2 doesn't work. Am I missing something in configuration.

    It happens because all transformation steps initialize at the beginning of transformation execution, and will execute as soon as they possibly can.
    Only data is held up by the Block step.

    If you want Task level control, you should use a job.
    Last edited by gutlez; 04-06-2016 at 04:29 PM. Reason: clarifying

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.