Issue 1112 in tungsten-replicator: enumToString filter does not support enum which contains parentheses inside values

5 views
Skip to first unread message

tungsten-...@googlecode.com

unread,
Apr 8, 2015, 12:11:02 PM4/8/15
to tungsten-repl...@googlegroups.com
Status: Accepted
Owner: stephane...@continuent.com
Labels: Type-Defect Priority-High FoundIn FixedIn-4.0.0

New issue 1112 by stephane...@continuent.com: enumToString filter does not
support enum which contains parentheses inside values
https://code.google.com/p/tungsten-replicator/issues/detail?id=1112

example :

ENUM('test (1)','test (2)','test (3)')

This would lead to an error on the extractor side like :

INFO | jvm 1 | 2015/02/19 21:59:12 | 2015-02-19 21:59:12,290
[goods_itemmaster - q-to-thl-0] ERROR pipeline.SingleThreadStageTask Stage
task failed: stage=q-to-thl seqno=13 fragno=0
INFO | jvm 1 | 2015/02/19 21:59:12 |
com.continuent.tungsten.replicator.ReplicatorException: MySQL value (4) for
ENUM @ Col 7 Row 0 is greater than available values (1)
INFO | jvm 1 | 2015/02/19 21:59:12 | at
com.continuent.tungsten.replicator.filter.EnumToStringFilter.transformColumns(EnumToStringFilter.java:652)
INFO | jvm 1 | 2015/02/19 21:59:12 | at
com.continuent.tungsten.replicator.filter.EnumToStringFilter.checkForListType(EnumToStringFilter.java:605)
INFO | jvm 1 | 2015/02/19 21:59:12 | at
com.continuent.tungsten.replicator.filter.EnumToStringFilter.checkForListType(EnumToStringFilter.java:469)
INFO | jvm 1 | 2015/02/19 21:59:12 | at
com.continuent.tungsten.replicator.filter.EnumToStringFilter.filter(EnumToStringFilter.java:216)

when extracting an event using a table with such a kind of definition.


This is due to the fact that the enum definition parsing stops at the
first ')' character.

--
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

tungsten-...@googlecode.com

unread,
Apr 8, 2015, 12:14:47 PM4/8/15
to tungsten-repl...@googlegroups.com

Comment #1 on issue 1112 by stephane...@continuent.com: enumToString filter
does not support enum which contains parentheses inside values
https://code.google.com/p/tungsten-replicator/issues/detail?id=1112

This issue was updated by revision r2809.

Handling parentheses inside values by catching the last of the string
instead of the first
Reply all
Reply to author
Forward
0 new messages