You are not logged in.
Announcement
Unanswered posts
|
Regarding your screenshot 4, when you change manually the cdc_state from 0 to 1, you only get 2 types of operations (I, D). Therefore, you've done 3 operations (I,D,I). There's no trace of the first insertion in the database in tcdc_view_customer1. Probably at the end the result are the same (trying to delete a row that doesn't exist before inserting a row and inserting a row, dior handbagsdeleting the row and inserting the same row) but in my version, after a delete there is NULL value in the other fields and i don't know why. Problem of version?
Hi,
In fact the problem come from "INSERT" action in the output component.
You have to uncheck "extent insert" in advance parameters and use a single CDCinput to capture "insert", "delete" or "update". Don't also forget to tSortRow before connectiong the tMap;
Regards
Thank you, for answering. But this method works for me only with .. In all other cases I get only strange results, like those below ![]()
Hi,
After deep tests today on CDC, I'm not able to get the same sequence of operations on table A (for instance I+D+I+I+D, where at least one I+D are on the same row) when I synchronize table A and table B.
Using multithreading was not the solution since it's not possible to guarantee the execution time of each thread.
This is remains a big problem.
Regards
dko
Hi dko
That is the culprit, if you check the box 'multiple thread exection', the subjobs will run parallelly.
Best regards
Shong
Hi,
Concerning the second part of my previous post, I think I know why it doesn't work when i want to keep the order of the changes during my synchronisation.
I've selected "multithreading execution" and deselect the use of the project settings in my job parameters. I've also deleted all "OnSubjobOk" (as described in http://www.talendforge.org/tutorials/tu … ;idTuto=44) to let my multithreading work. For the tests I've done for the moment, it works.
Maybe it can help.
Regards
dko
Hi Shong,
Thanks for your answer.
I'm trying to apply your first proposal, replacing NULL values by default one ("", 0, etc) in Insert because if I do I+D on the same row, it doesn't matter if I insert the row with default values as I'll delete it rigth after. It may work I think even if I have a lot of work for that because I have to do it manually for each table and field as the number of fields per table is quite variable. Maybe it could help a lot if this is taken into account in your CDC code.
Therefore, how can I get get the same sequence (I+D) during my replication. I mean, for instance, if I follow the example you give for CDC in Oracle (http://www.talendforge.org/tutorials/tu … ;idTuto=44) Delete is always executed before Insert (due to the order of execution of my job) so that I'll synchronise Insert with the default values in the other table.
Regards
Hi dko
I have looked your video and don't see an exception on your CDC operation. The only difference is I use SQLYog to operate mysql and you use PHPMYAdmin. I have no clue at the moment.
Best regards
Shong
Hi
Ok, I receive your video and I will have a look at it tomorrow.
Best regards
Shong
In these videos, I only do I+D on the same row and as you'll see, i get NULL values.
Hi Shong,
I've sent you by mail my videos.
Waiting for your return
Regards
dko
Ok. I'll be back to you with my video.
Regards
Hi dko
I am working on TDQv323 r35442, BUT I can confirm it should be same as other edition like TISV323 R35442. I checked again and the result is the same, even thought I have done 3 operations(I, D, I) and there are three records(I, D, I) in tcdc_customer1, BUT There are only two records(D,I) in tcdc_view_customer1 and the fields are not NULL. Don't know what you have done, is it possible for you to record an video and send it to me?
Best regards
Shong
Hi Shong,
Thanks for your answer. I don't know the difference between your development version of TIS 3.2.3 compare to my version 3.2.3.r35442.
Regarding your screenshot 4, when you change manually the cdc_state from 0 to 1, you only get 2 types of operations (I, D). Therefore, you've done 3 operations (I,D,I). There's no trace of the first insertion in the database in tcdc_view_customer1. Probably at the end the result are the same (trying to delete a row that doesn't exist before inserting a row and inserting a row, deleting the row and inserting the same row) but in my version, after a delete there is NULL value in the other fields and i don't know why. Problem of version?
Regards
dko
Hi
I can't reproduce the problem if I alter all the fields(except the key) are nullable. The difference is that all other fileds are not null or "" after I change manually the talend_cdc_state from 0 to 1.(please see my screenshot), I am testing it on v323 and v412, both of the two release work fine.
Best regards
Shong