parallel execution in iteration link : jumbles variable values
Hi,
I tried to use the parallel execution property in iteration link, to run commands (in tSystem component) in parallel
Several commands are launched simultaneously but the parameters passed to them (via context variables and a command line) are mixed
the general schema is the following :
tMySQLInput => tFlowtoIterate =iteration link=> tJava (to treat values returned from tMySQLInput) => tSystem
For example :
the tMySQLInput returns 2 identifiers which are passed to the tSystem component
there are indeed 2 iterations but twice the same identifier is passed to the tSystem component
Have you ever noted this ?
Is there another way to do it ?
Hi
It sounds like a bug, which version are you using? To me, each iteration should process a different row. Can you please do a testing like this, print the value returned from tMysqlOuput on tJava, for exmaple:
tMySQLInput =row1==> tFlowtoIterate =iteration link=> tJava
on tJava:
System.out.println(row1.identifiers)
Shong
Yes, I think it's a bug
I slightly modified the job to use directly the tFlowToIterate variables as you mentionned, instead of context variables (which were set in a tJava component) and it seems to work
context variables seem to be not set in the good moment in the job flow
Hi
Maybe there is something wrong in your code, how do you set values to context variables? Can you show us your code on tJava? Also, A screenshot of job will help us...
Shong
HI
Let me add a simple job to your point to judge whether its i a bug or not. I have designed a simple job like
tfileinputdelimited -- main --> tFlowToInterate --iterate(x2) --> tJava --iterate(x2)-->tSystem
I have a collection of commands in tFileInputDelimited, when i running the job the output is confusing me, like it is running the same command multiple times..but without parallel execution in iteration link it is working file. Please find
the Screen shot
thanks
B. Anil Kumar