mongodb集合为时间序列集合(time series collection) 时,reader时,collStats获取集合的count时,报空指针
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
Datax版本:https://datax-opensource.oss-cn-hangzhou.aliyuncs.com/202210/datax.tar.gz
Mongodb版本:5.0,6.0都有此问题
普通集合db.runCommand( { collStats : "xxx" } )是有count的:

但如果是时间序列的集合,是无count的:

所以针对时间序列集合,MongoDBReader会有问题,报空指针:

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the MongoDBReader path that calls collStats to obtain a collection count, and reproduce the behavior against MongoDB 5.0 or 6.0 using a time-series collection. Done means the reader no longer throws a null-pointer error when collStats omits count, while ordinary collections continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, mongodb
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100