Issue 1117 in tungsten-replicator: the example truncatetext.js script does not process all row change data

2 views
Skip to first unread message

tungsten-...@googlecode.com

unread,
May 25, 2015, 2:56:42 PM5/25/15
to tungsten-repl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium FoundIn

New issue 1117 by g...@vessere.com: the example truncatetext.js script does
not process all row change data
https://code.google.com/p/tungsten-replicator/issues/detail?id=1117

What steps will reproduce the problem?

1.setup replication to MySQL with more than one DBMSData events in one
ReplDBMSEvent

What is the expected output?
All DBMSData events will be processed

What do you see instead?
only some of them are processed

What version of the product are you using?
4.0.0.18

On what operating system?
Amazon linux


Please provide any additional information below.

Notes:
The issue comes from the fact that we are not declaring the i variable in
the for loop as a local variable. One of the nested calls in that main loop
also makes use of the i variable as a global variable. The 2 loop variables
end up corrupting each other.

Resolution:

Add "var i;" before each loop in those 2 functions in the script:

function filter(event)
function byteArrayToString(byteArray)




--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages