[JAVA-2913] mongodb 使用ttl索引 导致集合数据只写一个分片 扩容 Created: 21/Jul/18  Updated: 11/Sep/19  Resolved: 26/Jul/18

Status: Closed
Project: Java Driver
Component/s: Cluster Management
Affects Version/s: 3.4.3
Fix Version/s: None

Type: Task Priority: Critical - P2
Reporter: JackWang [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

docker部署



 Description   

我在生产的某一个数据集合mobileToken建了ttl索引,分片键是_id:1 生产环境运行一段时间后mobileToken集合只写一个分片rs1,并且数据迁移发生异常一直失败,导致数据查询很慢。机器负载高。我把ttl索引删除后,一段时间把所有shard实例重启,发现开始写rs1和rs3,然后我就把rs2 remove了,新增了rs4,发现数据只写rs1,rs3和rs4的mobileToken没有数据写入。求解决建议---



 Comments   
Comment by Ross Lawley [ 23/Jul/18 ]

Hi JackWang@180721,

Just to let you know this project is for Java driver bugs or feature requests. The best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. If your business requires an answer from MongoDB within a time frame then we do offer production support.

If you do follow up via one of the options above please post a link and I will follow the conversation there.

All the best,

Ross

Generated at Thu Feb 08 08:58:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.