Repository navigation
Description
Bug Description:
I have created this manticore vector search / knn table
CREATE TABLE text_vector_64_floats (
table_name string attribute,
table_rowid bigint,
text_str text,
text_vector float_vector knn_type='hnsw' knn_dims='64' hnsw_similarity='l2' )
and uploaded about 60 million rows (18 GB) into it using sql INSERT . The data comes from https://meta.wikimedia.org/wiki/Data_dump_torrents#English_Wikipedia 2025-06-01 - enwiki-20250601-pages-articles-multistream.xml.bz2 (130 gb XML file) - and vectorized the titles only with minishlab/potion-base-2M which outputs 64 float vectors as above.
The container was configured to use a memory limit of 9GB of RAM
manticore2:
image: manticoresearch/manticore:9.3.2
container_name: manticore2
ports:
- '19306:9306'
- '19308:9308'
volumes:
- manticore_data0:/var/lib/manticore
memswap_limit: 9000M
mem_limit: 9000M
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
restart: unless-stopped
environment:
- TELEMETRY=0
user: 999:999and at some point it got into a restart loop with this error
Manticore 9.3.2 428075261@25050208 (columnar 4.2.1 0fe99f4@25050206) (secondary 4.2.1 0fe99f4@25050206) (knn 4.2.1 0fe99f4@25050206)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2025, Manticore Software LTD (https://manticoresearch.com)
precaching table 'text_vector_64_floats'
binlog: replaying log /var/lib/manticore/binlog/binlog.0006
WARNING: binlog: cache: CRC mismatch (table=, tid=0, pos=270393770)
WARNING: binlog: replay error at pos=270393765
binlog: table text_vector_64_floats: recovered from tid 2309 to tid 2331
binlog: replay stats: 63 commits, 1 tables
binlog: finished replaying /var/lib/manticore/binlog/binlog.0006; 257.8 MB in 0.474 sec
binlog: replaying log /var/lib/manticore/binlog/binlog.0007
FATAL: binlog: commit (table=text_vector_64_floats, lasttid=2353, logtid=2354, pos=101918200, error=pread error in /var/lib/manticore/binlog/binlog.0007: pos=105029632, len=1)
Crash!!! Handling signal 11
[Thu Jul 3 10:58:31.783 2025] [1] using config file '/etc/manticoresearch/manticore.conf.sh' (351 chars)...
starting daemon version '9.3.2 428075261@25050208 (columnar 4.2.1 0fe99f4@25050206) (secondary 4.2.1 0fe99f4@25050206) (knn 4.2.1 0fe99f4@25050206)' ...
listening on all interfaces for mysql, port=9306
listening on UNIX socket /var/run/mysqld/mysqld.sock
listening on all interfaces for sphinx and http(s), port=9308
listening on 172.20.0.2:9312 for sphinx and http(s)
Manticore 9.3.2 428075261@25050208 (columnar 4.2.1 0fe99f4@25050206) (secondary 4.2.1 0fe99f4@25050206) (knn 4.2.1 0fe99f4@25050206)
Copyright (c) 2001-2016, Andrew Aksyonoff
Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
Copyright (c) 2017-2025, Manticore Software LTD (https://manticoresearch.com)
precaching table 'text_vector_64_floats'
binlog: replaying log /var/lib/manticore/binlog/binlog.0006
WARNING: binlog: cache: CRC mismatch (table=, tid=0, pos=270393770)
WARNING: binlog: replay error at pos=270393765
binlog: table text_vector_64_floats: recovered from tid 2309 to tid 2331
binlog: replay stats: 63 commits, 1 tables
binlog: finished replaying /var/lib/manticore/binlog/binlog.0006; 257.8 MB in 0.481 sec
binlog: replaying log /var/lib/manticore/binlog/binlog.0007
FATAL: binlog: commit (table=text_vector_64_floats, lasttid=2353, logtid=2354, pos=101918200, error=pread error in /var/lib/manticore/binlog/binlog.0007: pos=105029632, len=1)
Crash!!! Handling signal 11
I have since increased the memory limit to 20G, the same error and restart loop is happening as before.
The warnings suggest of data corruption - are there any guidelines on managing large amounts of data using this server?
If interested I can reproduce the experiment with some debug/development versions / branches to further debug this data corruption and segfault issue when uploading large row counts into the vector db, and also write some reproducing scripts that would vectorize and upload data from wikipedia torrent.
Maybe there's some way I can extract the core dump after signal 11 from the container filesystem ? It would probably be more useful if the core is dumped from a debug/dev build - let me know if you do need those files and how I can get them to you.
Finally let me know if you want me to turn on TELEMETRY=1 and maybe send you some kind of reference ID so you can look at the logs ?
Manticore Search Version:
9.3.2
Operating System Version:
debian stable + docker v28.
Have you tried the latest development version?
None
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.
Details
- Implementation completed
- Tests developed
- Documentation updated
- Documentation reviewed
Activity
tomatolog commentedon Jul 3, 2025
if you upload your index files and
/var/lib/manticore/binlog/binlog.files we could try to recreate and investigate this case locally. You could upload your data as described at our manual https://manual.manticoresearch.com/dev/Reporting_bugs#Uploading-your-datagabriel-v commentedon Jul 3, 2025
Upload is issue-20250703-3550
If it helps I could also log and upload the SQL inserts query and args for all of these - it's all from publicly available stuff like https://data.cityofchicago.org/Public-Safety/Crimes-2001-to-Present/ijzp-q8t2
tomatolog commentedon Jul 10, 2025
seems binlog.0007 really was cut and do not have full information.
However for now I think that initial limit was too low for data you posted and container was hard killed do not allow to fully flush the binlog data to disk. Then later daemon can not start if it can not replay binlog without error as it could cause data loose.
For now is only way is remove your binlog files and repopulate your data after daemon started.
If you see the crash on populating data please upload the data that we could populate into RT table and get this crash we could investigate the issue further