Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indexlibv2版本的单测OfflineBuilderV2Test(OfflineBuilderV2Test.testNormalTableParallelBuild),运行时异常 #255

Open
ldak4747 opened this issue Apr 2, 2024 · 1 comment

Comments

@ldak4747
Copy link

ldak4747 commented Apr 2, 2024

  1. aios/apps/facility/build_service/build_service/builder/test/OfflineBuilderV2Test.cpp,270行,这里应该生成indexlibv2::document::DocumentPtr吧?否则会在比如aios/storage/indexlib/document/extractor/plain/PrimaryKeyInfoExtractor.cpp的PrimaryKeyInfoExtractor::IsValidDocument函数中,dynamic_castindexlibv2::document::NormalDocument*(doc)返回空,导致不通过,返回false,也就是一条都没有加进去

  2. 尝试用旧的normal_document的ConstructNormalDocumentV2方法,生成v2的normal document并转化数据结构继续测,但发现,v2的docBatch在AddDcoument时,会core掉,正在编dbg版本看原因

分支:main
dev/1.1.0也会有问题,其他分支无这个单测文件

@ldak4747
Copy link
Author

ldak4747 commented Apr 2, 2024

使用v2正常,目前无v2的creator方法,所以用ConstructNormalDocumentV2方法,生成另一个v2的集合,单测可正常跑过,目前也能跑过,但数据未加入一条。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant