-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Bug]: datanode import error "invalid argument to Intn" #35662
Comments
/assign |
/unassign @yanliang567 |
Hello @wangqia0309, could you please provide all datanode+datacoord logs? The logs will give us more context and help us identify the root cause more quickly. Additionally, how many shards does the collection have? And does the collection using partitionKey? |
logs.zip |
@wangqia0309 The issue seems to be related to this parquet file cat mixcoord.log.log| grep 396_002145_000000.parquet | grep fileStats |
i just found the log like |
@wangqia0309 I understand that the relevant logs may have been overwritten or lost. Could you please provide the Parquet file for us? Having the data will allow us to attempt to reproduce the problem locally and investigate further. |
Submitted a PR to prevent the panic. I'll continue investigating the root cause. |
Hi @wangqia0309 , |
不是;我们是先写parquet文件到s3上,等所有parquet文件写完才启动milvus import process的. |
issue: #35662 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
Root cause: apache/arrow#43860 |
issue: #35662 Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
should be fixed |
Is there an existing issue for this?
Environment
Current Behavior
when datanode import parquet file in s3, occured one error as below image
![27312d948d281cb120f523bdbca79bb](https://private-user-images.githubusercontent.com/23092999/360786749-7a1ec70d-5045-41ff-ae40-81ded99733fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODg4MDksIm5iZiI6MTczOTU4ODUwOSwicGF0aCI6Ii8yMzA5Mjk5OS8zNjA3ODY3NDktN2ExZWM3MGQtNTA0NS00MWZmLWFlNDAtODFkZWQ5OTczM2ZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAzMDE0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEyNTcwYTdhNGM0OWNmZDg2ZjE2YWIxMGMxNDhlMGQ3N2VjNWY4NTBiNjBkNTgxOGRmMjAwNjNiZGU1MjBlMjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GqyrZADRSiyD0t8qpvky5yLAZIAfaDr4fQf0iXjE2oE)
we look for code and found the reason is that the candidates length is 0, but it's diffcult to me to go on researching
internal/datanode/importv2/util.go#PickSegment
Expected Behavior
No response
Steps To Reproduce
No response
Milvus Log
{"log":"[2024/08/23 02:16:05.409 +00:00] [ERROR] [conc/options.go:54] ["Conc pool panicked"] [panic="invalid argument to Intn"] [stack="github.com/milvus-io/milvus/pkg/util/conc.(*poolOption).antsOptions.func1\n\t/workspace/source/pkg/util/conc/options.go:54\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1.1\n\t/go/pkg/mod/github.com/panjf2000/ants/v2@v2.7.2/worker.go:54\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:914\ngithub.com/milvus-io/milvus/pkg/util/conc.(*Pool[...]).Submit.func1.1\n\t/workspace/source/pkg/util/conc/pool.go:74\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:914\nmath/rand.(*Rand).Intn\n\t/usr/local/go/src/math/rand/rand.go:180\ngithub.com/milvus-io/milvus/internal/datanode/importv2.PickSegment\n\t/workspace/source/internal/datanode/importv2/util.go:121\ngithub.com/milvus-io/milvus/internal/datanode/importv2.(*ImportTask).sync\n\t/workspace/source/internal/datanode/importv2/task_import.go:218\ngithub.com/milvus-io/milvus/internal/datanode/importv2.(*ImportTask).importFile\n\t/workspace/source/internal/datanode/importv2/task_import.go:185\ngithub.com/milvus-io/milvus/internal/datanode/importv2.(*ImportTask).Execute.func1\n\t/workspace/source/internal/datanode/importv2/task_import.go:142\ngithub.com/milvus-io/milvus/internal/datanode/importv2.(*ImportTask).Execute.func2\n\t/workspace/source/internal/datanode/importv2/task_import.go:157\ngithub.com/milvus-io/milvus/pkg/util/conc.(*Pool[...]).Submit.func1\n\t/workspace/source/pkg/util/conc/pool.go:81\ngithub.com/panjf2000/ants/v2.(*goWorker).run.func1\n\t/go/pkg/mod/github.com/panjf2000/ants/v2@v2.7.2/worker.go:67"]\n","stream":"stdout","time":"2024-08-23T02:16:05.409212576Z"}
{"log":"panic: invalid argument to Intn [recovered]\n","stream":"stderr","time":"2024-08-23T02:16:05.412405212Z"}
{"log":"\u0009panic: invalid argument to Intn [recovered]\n","stream":"stderr","time":"2024-08-23T02:16:05.412423674Z"}
{"log":"\u0009panic: invalid argument to Intn\n","stream":"stderr","time":"2024-08-23T02:16:05.412437793Z"}
Anything else?
No response
The text was updated successfully, but these errors were encountered: