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/12341 github. org/Juniper/ contrail- controller/ commit/ 1be13eb4b1c22fd 1ccbb6966bc854b 01a2529409
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 1be13eb4b1c22fd 1ccbb6966bc854b 01a2529409
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