You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a very specific scenario, but I'll file it as a bug anyway.
I set up a Text file output transform inside a "mappable" transform, with the purpose of creating a structured log file for what happens in the "mapping" transform. In short, the mapping transform generates the data needed in the log, and then pass those to the sub-pipeline to write them in the log. Hence, the Text file output is set to always write on the same file in "append" mode.
It happens that the parent transform calls the "logger" in multiple places, and sometimes their writes are mixed up in the resulting files, for example:
1596213;2023;30833201;E;DOE;JOHN;0;1596238;2023;30835173;S;MOE;JANE;1;Data correctly sent - HTTP status: 200 - Server response: true
+++ Invalid data provided
whereas the expected output should be:
1596213;2023;30833201;E;DOE;JOHN;0;+++ Invalid data provided
1596238;2023;30835173;S;MOE;JANE;1;Data correctly sent - HTTP status: 200 - Server response: true
I could probably mitigate this with some Blocking transforms here and there, but probably a better option would be checking if the file is already in use before writing (and then wait for its release before actually writing).
Issue Priority
Priority: 3
Issue Component
Component: Pipelines, Component: Transforms
The text was updated successfully, but these errors were encountered:
If they are being called from multiple places then these are distinct instances. And have no knowledge of the other instances running at the same time. The only solution will be to call the mapper only once in each pipeline. The same issue can happen when running multiple copies at the same time.
Apache Hop version?
2.10.0
Java version?
17.0.2
Operating system
Linux
What happened?
This might be a very specific scenario, but I'll file it as a bug anyway.
I set up a Text file output transform inside a "mappable" transform, with the purpose of creating a structured log file for what happens in the "mapping" transform. In short, the mapping transform generates the data needed in the log, and then pass those to the sub-pipeline to write them in the log. Hence, the Text file output is set to always write on the same file in "append" mode.
It happens that the parent transform calls the "logger" in multiple places, and sometimes their writes are mixed up in the resulting files, for example:
whereas the expected output should be:
I could probably mitigate this with some Blocking transforms here and there, but probably a better option would be checking if the file is already in use before writing (and then wait for its release before actually writing).
Issue Priority
Priority: 3
Issue Component
Component: Pipelines, Component: Transforms
The text was updated successfully, but these errors were encountered: