Update the collector column families from Ascii to UTF8
Cassandra returns InvalidRequestException when collector
tries to add a column and if the column data contains
unicode characters.
The issue is seen when any resource is created or deleted and
the resource name has unicode characters.
This patch fixes the issue by changing the collector column
family validation types from AsciiType to UTF8Type.
The patch also takes care of upgrading the existing column families
if they exist in the db.
(cherry-picked from commit 358765ed4e89430414284185f0acd4f149aeba73)
Reviewed: https:/ /review. opencontrail. org/12342 github. org/Juniper/ contrail- controller/ commit/ 45e2ef0a8997cae 84db2cf218ad2f4 6370972dad
Committed: http://
Submitter: Zuul
Branch: R2.1
commit 45e2ef0a8997cae 84db2cf218ad2f4 6370972dad
Author: Numan Siddique <email address hidden>
Date: Wed Mar 18 15:42:02 2015 +0530
Update the collector column families from Ascii to UTF8
Cassandra returns InvalidRequestE xception when collector
tries to add a column and if the column data contains
unicode characters.
The issue is seen when any resource is created or deleted and
the resource name has unicode characters.
This patch fixes the issue by changing the collector column
family validation types from AsciiType to UTF8Type.
The patch also takes care of upgrading the existing column families
if they exist in the db.
(cherry-picked from commit 358765ed4e89430 414284185f0acd4 f149aeba73)
Change-Id: I54ae9e756f7f67 ce684ef9e3ba557 038bc8f8731
Closes-bug: #1433021