bamaer commented on PR #8625:
URL: https://github.com/apache/hop/pull/8625#issuecomment-5864433996

   Pushed a fix for the `state_json` fallback.
   
   `state_json` is new in this PR, so no existing table has it. 
`LocalPipelineEngine.markSingleWriter()` makes every locally-run pipeline a 
single writer, so after the first flush `persistCacheEntry` took the light 
path, which without the column wrote only the status columns — the stored 
execution state and log froze at the first flush.
   
   `lightUpdate` now also requires `stateJsonColumnAvailable`, so such a table 
rewrites the whole document as `main` did. `releaseHeavyDocument()` is gated on 
the same flag, otherwise the rewrite would drop the metadata and the pipeline 
XML. The `ALTER TABLE` is logged at initialize when the column is missing.
   
   `aTableWithoutTheStateColumnKeepsRewritingTheDocument` fails on the previous 
code with `expected: <Finished> but was: <Running>`. 18/18 in that class.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to