You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "fwsdataeng-1 (via GitHub)" <gi...@apache.org> on 2026/02/26 20:00:20 UTC

[D] Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC (hop)

GitHub user fwsdataeng-1 created a discussion: Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC

Hi there dev team, I'm currently experiencing an issue in our **_Hop 2.14.0 pipeline_** where a downstream SQL step does not see the committed changes from the upstream step, even though the first step has completed its writes and a COMMIT has been issued.

**Scenario:**

**Multiversion Concurrency Control (MVCC) behavior in PostgreSQL:**

```
Session creation (snapshot at 1:00 AM)
   --> Execute SQL Step 1 (employee shifts) 
       * Runs on snapshot 1:00 AM
       * Writes finish at 1:05 AM
   --> Execute SQL Step 2 (employee meals)
       * Still runs on 1:00 AM snapshot
       * Does not see committed changes from Step 1
```

**I've already tried this:**

- Added the **COMMIT;** in Step 1, however this does not resolve it. It seems that each step uses the same connection session, apparently preserving the initial snapshot.


Is it recommended to split these into separate pipelines to ensure Step 2 sees committed data? or is there a way for hop to force a new DB session per step?

I'm trying to mimic the dbt-style DAG execution so each step sees a fresh snapshot.

This is essentially what my pipeline looks like:
<img width="972" height="410" alt="image" src="https://github.com/user-attachments/assets/ca6e1181-6339-4080-a1dc-f3727dbc3a9e" />


GitHub link: https://github.com/apache/hop/discussions/6670

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC

All transforms in a pipeline run in parallel. If you need to run this sequentially, use a workflow.

GitHub link: https://github.com/apache/hop/discussions/6670#discussioncomment-15938680

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC (hop)

Posted by "fwsdataeng-1 (via GitHub)" <gi...@apache.org>.
GitHub user fwsdataeng-1 added a comment to the discussion: Hop pipeline downstream step sees stale snapshot due to Postgresql MVCC

I see, I thought I can mimic the behavior to have it move like dbt where I can restart the db connection for every step. I was trying to do the data modelling here.

GitHub link: https://github.com/apache/hop/discussions/6670#discussioncomment-15938803

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org