IMBox中显示的各种计数值可能与实际数量不同。

 
此现象是产品的问题。由此给您带来的不便我们深感抱歉。
使用下述版本的客户,为了改进此现象请执行以下处理。
intra-mart Accel Platform 2013 Winter(Felicia)
intra-mart Accel Platform 2014 Spring(Granada)
intra-mart Accel Platform 2014 Summer(Honoka)
intra-mart Accel Platform 2014 Winter(Iceberg)
intra-mart Accel Platform 2015 Spring(Juno)
intra-mart Accel Platform 2015 Summer(Karen)
intra-mart Accel Platform 2015 Winter(Lydia)

【条件】
将Cassandra构建在分布式环境中时将发生。


【原因】
由于创建Column Family时未设置replicate_on_write,且更新处理时Cassandra节点之间未同步而导致发生。


【规避方法】
对Cassandra服务器执行以下步骤。
更改保存数量数据的ColumnFamily的属性值
通过此处理,更新处理时Cassandra节点之间将进行同步。


重新同步现存数据
通过此处理,Cassandra节点之间偏差的数据内容将进行同步。
0. 前提
在Cassandra服务器中执行工作。
工作中请停止intra-mart Accel Platform,并将其设置为不能写入Cassandra的状态。
1. 更改保存数量数据的ColumnFamily的属性值
请连接到机群构成中的Cassandra的任意一个服务器控制台。
执行Cassandra安装目录(以下记载为$cassandra_home)的bin目录下级中的cassandra-cli命令。
$cassandra_home/bin/cassandra-cli
在cassandra-cli命令中选择keyspace。
# 将default的部分替换为使用中的keyspace名称。
use default;
更改保存数量数据的ColumnFamily的属性值。
update column family ADD_MYLIST with replicate_on_write=true;
update column family ADD_MYLIST_WITH_COMPANY with replicate_on_write=true;
update column family ADD_TAG_AND_USER with replicate_on_write=true;
update column family ALLOW_COMPANY with replicate_on_write=true;
update column family APPLICATIONBOX_NOTICE with replicate_on_write=true;
update column family APPLICATIONBOX_TIMELINE with replicate_on_write=true;
update column family APPLICATION_DATA with replicate_on_write=true;
update column family APPLICATION_SENT with replicate_on_write=true;
update column family APPLICATION_WATCHED with replicate_on_write=true;
update column family APPLICATION_WATCHED_TARGET with replicate_on_write=true;
update column family APPLICATION_WATCHED_USER with replicate_on_write=true;
update column family ATTACH_COMPANY with replicate_on_write=true;
update column family ATTACH_COUNT with replicate_on_write=true;
update column family BOOKMARK_MESSAGE with replicate_on_write=true;
update column family COMPANY with replicate_on_write=true;
update column family COMPANYBOX_TIMELINE with replicate_on_write=true;
update column family COMPANY_ALLOWED with replicate_on_write=true;
update column family COMPANY_AND_TAG_ADDED with replicate_on_write=true;
update column family COMPANY_AND_TAG_FOLLOWED with replicate_on_write=true;
update column family COMPANY_ATTACHED with replicate_on_write=true;
update column family COMPANY_COUNT with replicate_on_write=true;
update column family COMPANY_MANAGE_GROUP with replicate_on_write=true;
update column family COMPANY_MANAGE_TAG with replicate_on_write=true;
update column family CONNECT_NOTICE with replicate_on_write=true;
update column family CREATE_MYLIST with replicate_on_write=true;
update column family DELETED_USER with replicate_on_write=true;
update column family DMBOX_TIMELINE with replicate_on_write=true;
update column family EVENT_HISTORY with replicate_on_write=true;
update column family FOLLOW_TAG with replicate_on_write=true;
update column family FOLLOW_USER with replicate_on_write=true;
update column family FOLLOW_USER_WITH_COMPANY with replicate_on_write=true;
update column family GROUP with replicate_on_write=true;
update column family GROUPBOX_TIMELINE with replicate_on_write=true;
update column family GROUPTYPE_GROUP with replicate_on_write=true;
update column family GROUP_COUNT with replicate_on_write=true;
update column family GROUP_INVITED with replicate_on_write=true;
update column family GROUP_JOINED with replicate_on_write=true;
update column family GROUP_MANAGED with replicate_on_write=true;
update column family GROUP_REQUESTED with replicate_on_write=true;
update column family HIDDENBOX_TIMELINE with replicate_on_write=true;
update column family IMBOX_CONTRIB_POLL_VOTES with replicate_on_write=true;
update column family IMBOX_CONTRIB_POLL_VOTE_COUNT with replicate_on_write=true;
update column family IMBOX_CONTRIB_POLL_VOTE_ITEMS with replicate_on_write=true;
update column family INVITE_GROUP with replicate_on_write=true;
update column family JOIN_GROUP with replicate_on_write=true;
update column family LIKE_MESSAGE with replicate_on_write=true;
update column family MAIL_NOTICE with replicate_on_write=true;
update column family MANAGE_GROUP with replicate_on_write=true;
update column family MESSAGE with replicate_on_write=true;
update column family MESSAGE_BOOKMARKED with replicate_on_write=true;
update column family MESSAGE_COUNT with replicate_on_write=true;
update column family MESSAGE_HISTORY with replicate_on_write=true;
update column family MESSAGE_LIKED with replicate_on_write=true;
update column family MESSAGE_NOTICED with replicate_on_write=true;
update column family MYBOX_TIMELINE with replicate_on_write=true;
update column family MYLIST with replicate_on_write=true;
update column family MYLIST_ADDED with replicate_on_write=true;
update column family MYLIST_TIMELINE with replicate_on_write=true;
update column family NOTICES_MEDIA with replicate_on_write=true;
update column family NOTICE_THREAD with replicate_on_write=true;
update column family NOTICE_USER with replicate_on_write=true;
update column family POST_THREAD with replicate_on_write=true;
update column family REFERENCE_THREAD with replicate_on_write=true;
update column family REQUEST_GROUP with replicate_on_write=true;
update column family TAG with replicate_on_write=true;
update column family TAG_COUNT with replicate_on_write=true;
update column family TAG_FOLLOWED with replicate_on_write=true;
update column family THREAD_COUNT with replicate_on_write=true;
update column family THREAD_POSTED with replicate_on_write=true;
update column family THREAD_REFERENCED with replicate_on_write=true;
update column family UNREAD_MESSAGE with replicate_on_write=true;
update column family UNREAD_TIMELINE with replicate_on_write=true;
update column family USER with replicate_on_write=true;
update column family USER_COUNT with replicate_on_write=true;
update column family USER_FOLLOWED with replicate_on_write=true;
update column family USER_FOLLOWED_WITH_COMPANY with replicate_on_write=true;
update column family USER_TIMELINE with replicate_on_write=true;
update column family WATCH_APPLICATION with replicate_on_write=true;
update column family WATCH_THREAD with replicate_on_write=true;
update column family WATCH_TIMELINE with replicate_on_write=true;
在上述中指定了2015 Winter(Lydia)时存在的所有Column Family。
如果在2015 Winter(Lydia) 的之前版本中执行,可能将显示以下信息,但没有问题。
{Column Family Name} not found in current keyspace.
结束cassandra-cli命令,处理完成。
quit;


2. 重新构建现存数量数据
对机群构成中的所有Cassandra执行repair处理。
请连接到机群构成中的Cassandra的服务器控制台。
使用$cassandra_home/bin目录下级中的nodetool命令执行repair处理。
此命令的执行时间将根据保存的数据量增加。
$cassandra_home/bin/nodetool repair
所有Cassandra服务器的处理正常结束后,处理完成。

另外,在以下需求中进行了修复。
https://issue.intra-mart.jp/issues/20710

-- 适用对象 -----------------------------------------------------------------
iAP/intra-mart Accel Platform/2013 Winter(Felicia)
iAP/intra-mart Accel Platform/2014 Spring(Granada)
iAP/intra-mart Accel Platform/2014 Summer(Honoka)
iAP/intra-mart Accel Platform/2014 Winter(Iceberg)
iAP/intra-mart Accel Platform/2015 Spring(Juno)
iAP/intra-mart Accel Platform/2015 Summer(Karen)
iAP/intra-mart Accel Platform/2015 Winter(Lydia)
--------------------------------------------------------------------------------

FAQID:599
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助
由 Zendesk 提供技术支持