RediSearch / RediSearch

A query and indexing engine for Redis, providing secondary indexing, full-text search, vector similarity search and aggregations.
https://redis.io/docs/stack/search/
Other
5.56k stars 523 forks source link

[CRASH] <After running a redis search knn command, redis is crashed> #3581

Closed iori0758 closed 1 year ago

iori0758 commented 1 year ago

redis : redis-stack-version:lates ,it run on docker

below is the crash report ``` -- | -- Thu, May 18 2023 9:12:58 pm | 9:C 18 May 2023 13:12:58.787 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo Thu, May 18 2023 9:12:58 pm | 9:C 18 May 2023 13:12:58.787 # Redis version=6.2.12, bits=64, commit=00000000, modified=0, pid=9, just started Thu, May 18 2023 9:12:58 pm | 9:C 18 May 2023 13:12:58.787 # Configuration loaded Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.788 * monotonic clock: POSIX clock_gettime Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.788 * Running mode=standalone, port=6379. Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.788 # Server initialized Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.790 * Redis version found by RedisSearch : 6.2.12 - oss Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.790 * RediSearch version 2.6.9 (Git=HEAD-b205a1d5) Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.790 * Low level api version 1 initialized successfully Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.790 * concurrent writes: OFF, gc: ON, prefix min length: 2, prefix max expansions: 200, query timeout (ms): 500, timeout policy: return, cursor read size: 1000, cursor max idle (ms): 300000, max doctable size: 1000000, max number of search results: 10000, search pool size: 20, index pool size: 8, Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.791 * Initialized thread pool! Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.791 * Enabled diskless replication Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.791 * Enabled role change notification Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.791 * Module 'search' loaded from /opt/redis-stack/lib/redisearch.so Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.794 * Enabled role change notification Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.794 * Starting up RedisGraph version 2.10.10. Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Thread pool created, using 8 threads. Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Maximum number of OpenMP threads set to 8 Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Module 'graph' loaded from /opt/redis-stack/lib/redisgraph.so Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * RedisTimeSeries version 10810, git_sha=78d8254a4ed499e4e24566ab76c9275130c8786b Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Redis version found by RedisTimeSeries : 6.2.12 - oss Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * loaded default CHUNK_SIZE_BYTES policy: 4096 Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * loaded server DUPLICATE_POLICY: block Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Setting default series ENCODING to: compressed Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.795 * Detected redis oss Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Enabled diskless replication Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Module 'timeseries' loaded from /opt/redis-stack/lib/redistimeseries.so Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * version: 20407 git sha: a4412b3 branch: HEAD Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Exported RedisJSON_V1 API Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Exported RedisJSON_V2 API Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Exported RedisJSON_V3 API Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Enabled diskless replication Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Created new data type 'ReJSON-RL' Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Module 'ReJSON' loaded from /opt/redis-stack/lib/rejson.so Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Acquired RedisJSON_V3 API Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.796 * Acquired RedisJSON_V1 API Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * RedisBloom version 2.4.5 (Git=unknown) Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * Module 'bf' loaded from /opt/redis-stack/lib/redisbloom.so Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * Loading event starts Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * Loading RDB produced by version 6.2.12 Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * RDB age 285 seconds Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * RDB memory usage when created 1.69 Mb Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 # Done loading RDB, keys loaded: 0, keys expired: 0. Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 # Skip background reindex scan, redis version contains loaded event. Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * Loading event ends Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * DB loaded from disk: 0.000 seconds Thu, May 18 2023 9:12:58 pm | 9:M 18 May 2023 13:12:58.797 * Ready to accept connections Fri, May 19 2023 8:49:24 am | 9:M 19 May 2023 00:49:24.615 # creating vector index. Server memory limit: 16763150336B, required memory: 12599600B, available memory: 16761380016B Fri, May 19 2023 8:49:24 am | 9:M 19 May 2023 00:49:24.699 * 1 changes in 3600 seconds. Saving... Fri, May 19 2023 8:49:24 am | 9:M 19 May 2023 00:49:24.702 * Background saving started by pid 286 Fri, May 19 2023 8:49:24 am | 286:C 19 May 2023 00:49:24.706 * DB saved on disk Fri, May 19 2023 8:49:24 am | 286:C 19 May 2023 00:49:24.709 * RDB: 2 MB of memory used by copy-on-write Fri, May 19 2023 8:49:24 am | 9:M 19 May 2023 00:49:24.803 * Background saving terminated with success Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | === REDIS BUG REPORT START: Cut & paste starting from here === Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.690 # Redis 6.2.12 crashed by signal: 4, si_code: 2 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.690 # Crashed running the instruction at: 0x7f6cac43eecd Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ STACK TRACE ------ Fri, May 19 2023 8:55:03 am | EIP: Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(_Z34FP64_InnerProductSIMD8Ext_SSE_implPKvS0_m+0xd)[0x7f6cac43eecd] Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | Backtrace: Fri, May 19 2023 8:55:03 am | /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f6cad0ee420] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(invalidFunctionWasCalled+0x0)[0x56324a390490] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(_Z29FP64_InnerProductSIMD8Ext_SSEPKvS0_m+0xd)[0x7f6cac43ef3d] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(_ZNK15BruteForceIndexIddE18computeBlockScoresEP11VectorBlockPKvPvP22VecSimQueryResult_Code+0x1ce)[0x7f6cac4100ee] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(_ZN15BruteForceIndexIddE9topKQueryEPKvmP17VecSimQueryParams+0x1de)[0x7f6cac4108ce] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(VecSimIndex_TopKQuery+0x18)[0x7f6cac4079d8] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(+0xd7d68)[0x7f6cac381d68] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(+0x1048c0)[0x7f6cac3ae8c0] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(+0x104c39)[0x7f6cac3aec39] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(+0x1051f7)[0x7f6cac3af1f7] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(+0x104cba)[0x7f6cac3aecba] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(sendChunk+0xa6)[0x7f6cac34f906] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(AREQ_Execute+0x1d)[0x7f6cac35005d] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/lib/redisearch.so(RSSearchCommand+0xec)[0x7f6cac35086c] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(RedisModuleCommandDispatcher+0x67)[0x56324a3cb417] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(call+0xf0)[0x56324a33c940] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(processCommand+0x643)[0x56324a33e643] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(processCommandAndResetClient+0x20)[0x56324a351d20] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(processInputBuffer+0xea)[0x56324a35467a] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(+0x1018ac)[0x56324a3ed8ac] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(aeProcessEvents+0x2ca)[0x56324a334e6a] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(aeMain+0x1d)[0x56324a3350fd] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(main+0x33a)[0x56324a33150a] Fri, May 19 2023 8:55:03 am | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f6cacf0c083] Fri, May 19 2023 8:55:03 am | /opt/redis-stack/bin/redis-server *:6379(_start+0x2e)[0x56324a331a0e] Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ REGISTERS ------ Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # Fri, May 19 2023 8:55:03 am | RAX:00007f6c9e6020c8 RBX:0000000000000000 Fri, May 19 2023 8:55:03 am | RCX:00007f6ca0481d90 RDX:0000000000000600 Fri, May 19 2023 8:55:03 am | RDI:00007f6c9e5ff0c8 RSI:00007ffc123bdfe0 Fri, May 19 2023 8:55:03 am | RBP:00007f6cacb0d688 RSP:00007ffc123bdf58 Fri, May 19 2023 8:55:03 am | R8 :00007f6c80000000 R9 :00007ffc123c1028 Fri, May 19 2023 8:55:03 am | R10:bf890e0c20000000 R11:bf84e06d40000000 Fri, May 19 2023 8:55:03 am | R12:00007ffc123c1030 R13:00007f6caca15c08 Fri, May 19 2023 8:55:03 am | R14:00007f6caca582b8 R15:00007ffc123bdfe0 Fri, May 19 2023 8:55:03 am | RIP:00007f6cac43eecd EFL:0000000000010287 Fri, May 19 2023 8:55:03 am | CSGSFS:002b000000000033 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf67) -> 0000000000000000 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf66) -> 00007f6cacb0d688 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf65) -> 00007f6cac53d594 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf64) -> 00007f6caca2d368 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf63) -> 00007ffc123c10b0 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf62) -> 00007f6ca0481ec0 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf61) -> 00007f6ca0481ea0 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf60) -> 00007f6cac5f6730 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5f) -> 00007f6cad0eac10 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5e) -> 000056324a778f58 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5d) -> 00007f6ca0481d90 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5c) -> 00007ffc123c1028 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5b) -> 0000000000000001 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf5a) -> 00007f6cac4100ee Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf59) -> 0000000000000000 Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.691 # (00007ffc123bdf58) -> 00007f6cac43ef3d Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ INFO OUTPUT ------ Fri, May 19 2023 8:55:03 am | # Server Fri, May 19 2023 8:55:03 am | redis_version:6.2.12 Fri, May 19 2023 8:55:03 am | redis_git_sha1:00000000 Fri, May 19 2023 8:55:03 am | redis_git_dirty:0 Fri, May 19 2023 8:55:03 am | redis_build_id:4dbc2487343b0024 Fri, May 19 2023 8:55:03 am | redis_mode:standalone Fri, May 19 2023 8:55:03 am | os:Linux 5.4.207-1.el7.elrepo.x86_64 x86_64 Fri, May 19 2023 8:55:03 am | arch_bits:64 Fri, May 19 2023 8:55:03 am | monotonic_clock:POSIX clock_gettime Fri, May 19 2023 8:55:03 am | multiplexing_api:epoll Fri, May 19 2023 8:55:03 am | atomicvar_api:c11-builtin Fri, May 19 2023 8:55:03 am | gcc_version:9.4.0 Fri, May 19 2023 8:55:03 am | process_id:9 Fri, May 19 2023 8:55:03 am | process_supervised:no Fri, May 19 2023 8:55:03 am | run_id:adf13a555d919addf9314c8e000f885cfd7cb135 Fri, May 19 2023 8:55:03 am | tcp_port:6379 Fri, May 19 2023 8:55:03 am | server_time_usec:1684457703690632 Fri, May 19 2023 8:55:03 am | uptime_in_seconds:42125 Fri, May 19 2023 8:55:03 am | uptime_in_days:0 Fri, May 19 2023 8:55:03 am | hz:10 Fri, May 19 2023 8:55:03 am | configured_hz:10 Fri, May 19 2023 8:55:03 am | lru_clock:6736103 Fri, May 19 2023 8:55:03 am | executable:/opt/redis-stack/bin/redis-server Fri, May 19 2023 8:55:03 am | config_file: Fri, May 19 2023 8:55:03 am | io_threads_active:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Clients Fri, May 19 2023 8:55:03 am | connected_clients:34 Fri, May 19 2023 8:55:03 am | cluster_connections:0 Fri, May 19 2023 8:55:03 am | maxclients:10000 Fri, May 19 2023 8:55:03 am | client_recent_max_input_buffer:40992 Fri, May 19 2023 8:55:03 am | client_recent_max_output_buffer:0 Fri, May 19 2023 8:55:03 am | blocked_clients:0 Fri, May 19 2023 8:55:03 am | tracking_clients:0 Fri, May 19 2023 8:55:03 am | clients_in_timeout_table:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Memory Fri, May 19 2023 8:55:03 am | used_memory:16773072 Fri, May 19 2023 8:55:03 am | used_memory_human:16.00M Fri, May 19 2023 8:55:03 am | used_memory_rss:55033856 Fri, May 19 2023 8:55:03 am | used_memory_rss_human:52.48M Fri, May 19 2023 8:55:03 am | used_memory_peak:16773072 Fri, May 19 2023 8:55:03 am | used_memory_peak_human:16.00M Fri, May 19 2023 8:55:03 am | used_memory_peak_perc:100.04% Fri, May 19 2023 8:55:03 am | used_memory_overhead:1711992 Fri, May 19 2023 8:55:03 am | used_memory_startup:1014768 Fri, May 19 2023 8:55:03 am | used_memory_dataset:15061080 Fri, May 19 2023 8:55:03 am | used_memory_dataset_perc:95.58% Fri, May 19 2023 8:55:03 am | allocator_allocated:17423848 Fri, May 19 2023 8:55:03 am | allocator_active:17952768 Fri, May 19 2023 8:55:03 am | allocator_resident:20901888 Fri, May 19 2023 8:55:03 am | total_system_memory:16763150336 Fri, May 19 2023 8:55:03 am | total_system_memory_human:15.61G Fri, May 19 2023 8:55:03 am | used_memory_lua:30720 Fri, May 19 2023 8:55:03 am | used_memory_lua_human:30.00K Fri, May 19 2023 8:55:03 am | used_memory_scripts:0 Fri, May 19 2023 8:55:03 am | used_memory_scripts_human:0B Fri, May 19 2023 8:55:03 am | number_of_cached_scripts:0 Fri, May 19 2023 8:55:03 am | maxmemory:0 Fri, May 19 2023 8:55:03 am | maxmemory_human:0B Fri, May 19 2023 8:55:03 am | maxmemory_policy:noeviction Fri, May 19 2023 8:55:03 am | allocator_frag_ratio:1.03 Fri, May 19 2023 8:55:03 am | allocator_frag_bytes:528920 Fri, May 19 2023 8:55:03 am | allocator_rss_ratio:1.16 Fri, May 19 2023 8:55:03 am | allocator_rss_bytes:2949120 Fri, May 19 2023 8:55:03 am | rss_overhead_ratio:2.63 Fri, May 19 2023 8:55:03 am | rss_overhead_bytes:34131968 Fri, May 19 2023 8:55:03 am | mem_fragmentation_ratio:3.30 Fri, May 19 2023 8:55:03 am | mem_fragmentation_bytes:38350200 Fri, May 19 2023 8:55:03 am | mem_not_counted_for_evict:0 Fri, May 19 2023 8:55:03 am | mem_replication_backlog:0 Fri, May 19 2023 8:55:03 am | mem_clients_slaves:0 Fri, May 19 2023 8:55:03 am | mem_clients_normal:697152 Fri, May 19 2023 8:55:03 am | mem_aof_buffer:0 Fri, May 19 2023 8:55:03 am | mem_allocator:jemalloc-5.1.0 Fri, May 19 2023 8:55:03 am | active_defrag_running:0 Fri, May 19 2023 8:55:03 am | lazyfree_pending_objects:0 Fri, May 19 2023 8:55:03 am | lazyfreed_objects:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Persistence Fri, May 19 2023 8:55:03 am | loading:0 Fri, May 19 2023 8:55:03 am | current_cow_size:0 Fri, May 19 2023 8:55:03 am | current_cow_size_age:0 Fri, May 19 2023 8:55:03 am | current_fork_perc:0.00 Fri, May 19 2023 8:55:03 am | current_save_keys_processed:0 Fri, May 19 2023 8:55:03 am | current_save_keys_total:0 Fri, May 19 2023 8:55:03 am | rdb_changes_since_last_save:1 Fri, May 19 2023 8:55:03 am | rdb_bgsave_in_progress:0 Fri, May 19 2023 8:55:03 am | rdb_last_save_time:1684457364 Fri, May 19 2023 8:55:03 am | rdb_last_bgsave_status:ok Fri, May 19 2023 8:55:03 am | rdb_last_bgsave_time_sec:0 Fri, May 19 2023 8:55:03 am | rdb_current_bgsave_time_sec:-1 Fri, May 19 2023 8:55:03 am | rdb_last_cow_size:2605056 Fri, May 19 2023 8:55:03 am | aof_enabled:0 Fri, May 19 2023 8:55:03 am | aof_rewrite_in_progress:0 Fri, May 19 2023 8:55:03 am | aof_rewrite_scheduled:0 Fri, May 19 2023 8:55:03 am | aof_last_rewrite_time_sec:-1 Fri, May 19 2023 8:55:03 am | aof_current_rewrite_time_sec:-1 Fri, May 19 2023 8:55:03 am | aof_last_bgrewrite_status:ok Fri, May 19 2023 8:55:03 am | aof_last_write_status:ok Fri, May 19 2023 8:55:03 am | aof_last_cow_size:0 Fri, May 19 2023 8:55:03 am | module_fork_in_progress:0 Fri, May 19 2023 8:55:03 am | module_fork_last_cow_size:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Stats Fri, May 19 2023 8:55:03 am | total_connections_received:34 Fri, May 19 2023 8:55:03 am | total_commands_processed:75 Fri, May 19 2023 8:55:03 am | instantaneous_ops_per_sec:0 Fri, May 19 2023 8:55:03 am | total_net_input_bytes:62659 Fri, May 19 2023 8:55:03 am | total_net_output_bytes:4980 Fri, May 19 2023 8:55:03 am | instantaneous_input_kbps:0.00 Fri, May 19 2023 8:55:03 am | instantaneous_output_kbps:0.00 Fri, May 19 2023 8:55:03 am | rejected_connections:0 Fri, May 19 2023 8:55:03 am | sync_full:0 Fri, May 19 2023 8:55:03 am | sync_partial_ok:0 Fri, May 19 2023 8:55:03 am | sync_partial_err:0 Fri, May 19 2023 8:55:03 am | expired_keys:0 Fri, May 19 2023 8:55:03 am | expired_stale_perc:0.00 Fri, May 19 2023 8:55:03 am | expired_time_cap_reached_count:0 Fri, May 19 2023 8:55:03 am | expire_cycle_cpu_milliseconds:692 Fri, May 19 2023 8:55:03 am | evicted_keys:0 Fri, May 19 2023 8:55:03 am | keyspace_hits:1 Fri, May 19 2023 8:55:03 am | keyspace_misses:0 Fri, May 19 2023 8:55:03 am | pubsub_channels:0 Fri, May 19 2023 8:55:03 am | pubsub_patterns:0 Fri, May 19 2023 8:55:03 am | latest_fork_usec:3298 Fri, May 19 2023 8:55:03 am | total_forks:1 Fri, May 19 2023 8:55:03 am | migrate_cached_sockets:0 Fri, May 19 2023 8:55:03 am | slave_expires_tracked_keys:0 Fri, May 19 2023 8:55:03 am | active_defrag_hits:0 Fri, May 19 2023 8:55:03 am | active_defrag_misses:0 Fri, May 19 2023 8:55:03 am | active_defrag_key_hits:0 Fri, May 19 2023 8:55:03 am | active_defrag_key_misses:0 Fri, May 19 2023 8:55:03 am | tracking_total_keys:0 Fri, May 19 2023 8:55:03 am | tracking_total_items:0 Fri, May 19 2023 8:55:03 am | tracking_total_prefixes:0 Fri, May 19 2023 8:55:03 am | unexpected_error_replies:0 Fri, May 19 2023 8:55:03 am | total_error_replies:1 Fri, May 19 2023 8:55:03 am | dump_payload_sanitizations:0 Fri, May 19 2023 8:55:03 am | total_reads_processed:84 Fri, May 19 2023 8:55:03 am | total_writes_processed:73 Fri, May 19 2023 8:55:03 am | io_threaded_reads_processed:0 Fri, May 19 2023 8:55:03 am | io_threaded_writes_processed:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Replication Fri, May 19 2023 8:55:03 am | role:master Fri, May 19 2023 8:55:03 am | connected_slaves:0 Fri, May 19 2023 8:55:03 am | master_failover_state:no-failover Fri, May 19 2023 8:55:03 am | master_replid:e3f91aaf96e73aa68078db9f59e9efb803fd5212 Fri, May 19 2023 8:55:03 am | master_replid2:0000000000000000000000000000000000000000 Fri, May 19 2023 8:55:03 am | master_repl_offset:0 Fri, May 19 2023 8:55:03 am | second_repl_offset:-1 Fri, May 19 2023 8:55:03 am | repl_backlog_active:0 Fri, May 19 2023 8:55:03 am | repl_backlog_size:1048576 Fri, May 19 2023 8:55:03 am | repl_backlog_first_byte_offset:0 Fri, May 19 2023 8:55:03 am | repl_backlog_histlen:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # CPU Fri, May 19 2023 8:55:03 am | used_cpu_sys:27.088760 Fri, May 19 2023 8:55:03 am | used_cpu_user:31.190417 Fri, May 19 2023 8:55:03 am | used_cpu_sys_children:0.006492 Fri, May 19 2023 8:55:03 am | used_cpu_user_children:0.000000 Fri, May 19 2023 8:55:03 am | used_cpu_sys_main_thread:26.617430 Fri, May 19 2023 8:55:03 am | used_cpu_user_main_thread:30.640458 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Modules Fri, May 19 2023 8:55:03 am | module:name=timeseries,ver=10810,api=1,filters=0,usedby=[],using=[],options=[handle-io-errors] Fri, May 19 2023 8:55:03 am | module:name=graph,ver=21010,api=1,filters=0,usedby=[],using=[ReJSON],options=[] Fri, May 19 2023 8:55:03 am | module:name=search,ver=20609,api=1,filters=0,usedby=[],using=[ReJSON],options=[handle-io-errors] Fri, May 19 2023 8:55:03 am | module:name=ReJSON,ver=20407,api=1,filters=0,usedby=[search\|graph],using=[],options=[handle-io-errors] Fri, May 19 2023 8:55:03 am | module:name=bf,ver=20405,api=1,filters=0,usedby=[],using=[],options=[] Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Commandstats Fri, May 19 2023 8:55:03 am | cmdstat_info:calls=3,usec=157,usec_per_call=52.33,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_scan:calls=1,usec=7,usec_per_call=7.00,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_FT.CREATE:calls=1,usec=250,usec_per_call=250.00,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_FT.INFO:calls=1,usec=14,usec_per_call=14.00,rejected_calls=0,failed_calls=1 Fri, May 19 2023 8:55:03 am | cmdstat_auth:calls=34,usec=65,usec_per_call=1.91,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_select:calls=33,usec=11,usec_per_call=0.33,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_FT.SEARCH:calls=1,usec=112,usec_per_call=112.00,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | cmdstat_json.set:calls=1,usec=763,usec_per_call=763.00,rejected_calls=0,failed_calls=0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Errorstats Fri, May 19 2023 8:55:03 am | errorstat_Unknown:count=1 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Cluster Fri, May 19 2023 8:55:03 am | cluster_enabled:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # Keyspace Fri, May 19 2023 8:55:03 am | db0:keys=1,expires=0,avg_ttl=0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ CLIENT LIST OUTPUT ------ Fri, May 19 2023 8:55:03 am | id=40 addr=10.8.9.5:33857 laddr=172.17.160.110:6379 fd=40 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=41 addr=10.8.9.5:48757 laddr=172.17.160.110:6379 fd=41 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=42 addr=10.8.9.5:23110 laddr=172.17.160.110:6379 fd=42 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=43 addr=10.8.9.5:62791 laddr=172.17.160.110:6379 fd=43 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=44 addr=10.8.9.5:53928 laddr=172.17.160.110:6379 fd=44 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=12 addr=10.8.9.5:25614 laddr=172.17.160.110:6379 fd=12 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=45 addr=10.8.9.5:32974 laddr=172.17.160.110:6379 fd=45 name= age=339 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=12290 qbuf-free=28664 argv-mem=12390 obl=0 oll=0 omem=0 tot-mem=73958 events=r cmd=FT.SEARCH user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=13 addr=10.8.9.5:60139 laddr=172.17.160.110:6379 fd=13 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=14 addr=10.8.9.5:22346 laddr=172.17.160.110:6379 fd=14 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=15 addr=10.8.9.5:15610 laddr=172.17.160.110:6379 fd=15 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=16 addr=10.8.9.5:17666 laddr=172.17.160.110:6379 fd=16 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=17 addr=10.8.9.5:10418 laddr=172.17.160.110:6379 fd=17 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=18 addr=10.8.9.5:8480 laddr=172.17.160.110:6379 fd=18 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=19 addr=10.8.9.5:6247 laddr=172.17.160.110:6379 fd=19 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=20 addr=10.8.9.5:9351 laddr=172.17.160.110:6379 fd=20 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=21 addr=10.8.9.5:39855 laddr=172.17.160.110:6379 fd=21 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=22 addr=10.8.9.5:1187 laddr=172.17.160.110:6379 fd=22 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=23 addr=10.8.9.5:18964 laddr=172.17.160.110:6379 fd=23 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=24 addr=10.8.9.5:52793 laddr=172.17.160.110:6379 fd=24 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=25 addr=10.8.9.5:42076 laddr=172.17.160.110:6379 fd=25 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=26 addr=10.8.9.5:45233 laddr=172.17.160.110:6379 fd=26 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=27 addr=10.8.9.5:35931 laddr=172.17.160.110:6379 fd=27 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=28 addr=10.8.9.5:63906 laddr=172.17.160.110:6379 fd=28 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=29 addr=10.8.9.5:38851 laddr=172.17.160.110:6379 fd=29 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=30 addr=10.8.9.5:10672 laddr=172.17.160.110:6379 fd=30 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=31 addr=10.8.9.5:40169 laddr=172.17.160.110:6379 fd=31 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=32 addr=10.8.9.5:20381 laddr=172.17.160.110:6379 fd=32 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=33 addr=10.8.9.5:50870 laddr=172.17.160.110:6379 fd=33 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=34 addr=10.8.9.5:51110 laddr=172.17.160.110:6379 fd=34 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=35 addr=10.8.9.5:23769 laddr=172.17.160.110:6379 fd=35 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=36 addr=10.8.9.5:29699 laddr=172.17.160.110:6379 fd=36 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=37 addr=10.8.9.5:42184 laddr=172.17.160.110:6379 fd=37 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=38 addr=10.8.9.5:20815 laddr=172.17.160.110:6379 fd=38 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | id=39 addr=10.8.9.5:15056 laddr=172.17.160.110:6379 fd=39 name= age=42118 idle=42118 flags=N db=2 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=0 argv-mem=0 obl=0 oll=0 omem=0 tot-mem=20504 events=r cmd=select user=default redir=-1 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ CURRENT CLIENT INFO ------ Fri, May 19 2023 8:55:03 am | id=45 addr=10.8.9.5:32974 laddr=172.17.160.110:6379 fd=45 name= age=339 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=12290 qbuf-free=28664 argv-mem=12390 obl=0 oll=0 omem=0 tot-mem=73958 events=r cmd=FT.SEARCH user=default redir=-1 Fri, May 19 2023 8:55:03 am | argv[0]: 'FT.SEARCH' Fri, May 19 2023 8:55:03 am | argv[1]: 'index' Fri, May 19 2023 8:55:03 am | argv[2]: '(*)=>[KNN 3 @embedding $embedding as score]' Fri, May 19 2023 8:55:03 am | argv[3]: 'SORTBY' Fri, May 19 2023 8:55:03 am | argv[4]: 'score' Fri, May 19 2023 8:55:03 am | argv[5]: 'ASC' Fri, May 19 2023 8:55:03 am | argv[6]: 'DIALECT' Fri, May 19 2023 8:55:03 am | argv[7]: '2' Fri, May 19 2023 8:55:03 am | argv[8]: 'LIMIT' Fri, May 19 2023 8:55:03 am | argv[9]: '0' Fri, May 19 2023 8:55:03 am | argv[10]: '3' Fri, May 19 2023 8:55:03 am | argv[11]: 'params' Fri, May 19 2023 8:55:03 am | argv[12]: '2' Fri, May 19 2023 8:55:03 am | argv[13]: 'embedding' Fri, May 19 2023 8:55:03 am | argv[14]: '' Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ MODULES INFO OUTPUT ------ Fri, May 19 2023 8:55:03 am | # graph_executing commands Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # search_version Fri, May 19 2023 8:55:03 am | search_version:2.6.9 Fri, May 19 2023 8:55:03 am | search_redis_version:6.2.12 - oss Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # search_index Fri, May 19 2023 8:55:03 am | search_number_of_indexes:1 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # search_fields_statistics Fri, May 19 2023 8:55:03 am | search_fields_text:Text=1 Fri, May 19 2023 8:55:03 am | search_fields_numeric:Numeric=1 Fri, May 19 2023 8:55:03 am | search_fields_tag:Tag=3 Fri, May 19 2023 8:55:03 am | search_fields_vector:Vector=1,Flat=1 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # search_dialect_statistics Fri, May 19 2023 8:55:03 am | search_dialect_1:0 Fri, May 19 2023 8:55:03 am | search_dialect_2:1 Fri, May 19 2023 8:55:03 am | search_dialect_3:0 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # search_runtime_configurations Fri, May 19 2023 8:55:03 am | search_concurrent_mode:OFF Fri, May 19 2023 8:55:03 am | search_enableGC:ON Fri, May 19 2023 8:55:03 am | search_minimal_term_prefix:2 Fri, May 19 2023 8:55:03 am | search_maximal_prefix_expansions:200 Fri, May 19 2023 8:55:03 am | search_query_timeout_ms:500 Fri, May 19 2023 8:55:03 am | search_timeout_policy:return Fri, May 19 2023 8:55:03 am | search_cursor_read_size:1000 Fri, May 19 2023 8:55:03 am | search_cursor_max_idle_time:300000 Fri, May 19 2023 8:55:03 am | search_max_doc_table_size:1000000 Fri, May 19 2023 8:55:03 am | search_max_search_results:10000 Fri, May 19 2023 8:55:03 am | search_max_aggregate_results:10000 Fri, May 19 2023 8:55:03 am | search_search_pool_size:20 Fri, May 19 2023 8:55:03 am | search_index_pool_size:8 Fri, May 19 2023 8:55:03 am | search_gc_scan_size:100 Fri, May 19 2023 8:55:03 am | search_min_phonetic_term_length:3 Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | # ReJSON_trace Fri, May 19 2023 8:55:03 am | ReJSON_trace: 0: redis_module::base_info_func Fri, May 19 2023 8:55:03 am | 1: rejson::__info_func Fri, May 19 2023 8:55:03 am | 2: modulesCollectInfo Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/module.c:7100:9 Fri, May 19 2023 8:55:03 am | 3: logModulesInfo Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/debug.c:1624:22 Fri, May 19 2023 8:55:03 am | 4: printCrashReport Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/debug.c:1896:5 Fri, May 19 2023 8:55:03 am | 5: sigsegvHandler Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/debug.c:1878:5 Fri, May 19 2023 8:55:03 am | 6: Fri, May 19 2023 8:55:03 am | 7: _Z34FP64_InnerProductSIMD8Ext_SSE_implPKvS0_m Fri, May 19 2023 8:55:03 am | 8: _Z29FP64_InnerProductSIMD8Ext_SSEPKvS0_m Fri, May 19 2023 8:55:03 am | 9: _ZNK15BruteForceIndexIddE18computeBlockScoresEP11VectorBlockPKvPvP22VecSimQueryResult_Code Fri, May 19 2023 8:55:03 am | 10: _ZN15BruteForceIndexIddE9topKQueryEPKvmP17VecSimQueryParams Fri, May 19 2023 8:55:03 am | 11: VecSimIndex_TopKQuery Fri, May 19 2023 8:55:03 am | 12: HR_ReadKnnUnsorted Fri, May 19 2023 8:55:03 am | 13: rpidxNext Fri, May 19 2023 8:55:03 am | 14: rpMetricsNext Fri, May 19 2023 8:55:03 am | 15: rpsortNext_Accum Fri, May 19 2023 8:55:03 am | 16: rploaderNext Fri, May 19 2023 8:55:03 am | 17: sendChunk Fri, May 19 2023 8:55:03 am | 18: AREQ_Execute Fri, May 19 2023 8:55:03 am | 19: RSSearchCommand Fri, May 19 2023 8:55:03 am | 20: RedisModuleCommandDispatcher Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/module.c:695:5 Fri, May 19 2023 8:55:03 am | 21: call Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/server.c:3750:5 Fri, May 19 2023 8:55:03 am | 22: processCommand Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/server.c:4297:9 Fri, May 19 2023 8:55:03 am | 23: processCommandAndResetClient Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/networking.c:2105:9 Fri, May 19 2023 8:55:03 am | 24: processInputBuffer Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/networking.c:2206:17 Fri, May 19 2023 8:55:03 am | 25: callHandler Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/connhelpers.h:79:18 Fri, May 19 2023 8:55:03 am | connSocketEventHandler Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/connection.c:295:14 Fri, May 19 2023 8:55:03 am | 26: aeProcessEvents Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/ae.c:427:17 Fri, May 19 2023 8:55:03 am | 27: aeMain Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/ae.c:487:9 Fri, May 19 2023 8:55:03 am | 28: main Fri, May 19 2023 8:55:03 am | at /__w/redis-stack/redis-stack/redis/src/server.c:6474:5 Fri, May 19 2023 8:55:03 am | 29: __libc_start_main Fri, May 19 2023 8:55:03 am | 30: _start Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | Fri, May 19 2023 8:55:03 am | ------ FAST MEMORY TEST ------ Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.702 # Bio thread for job type #0 terminated Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.702 # Bio thread for job type #1 terminated Fri, May 19 2023 8:55:03 am | 9:M 19 May 2023 00:55:03.702 # Bio thread for job type #2 terminated Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 56324a505000 (2658304 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6c98000000 (135168 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6c9c215000 (20971520 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6c9e5ff000 (16777216 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6c9f600000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6c9fe00000 (4194304 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca03b6000 (2621440 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca0637000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca0e38000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca1639000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca1e3a000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca28f6000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca30f7000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca3986000 (4096 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca3988000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca4189000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca498a000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca518b000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca598c000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca618d000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca698e000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca718f000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca7990000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca8191000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca8992000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6ca9193000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cab0c3000 (12288 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cab0c7000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cab8c8000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cac2a7000 (12288 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cac5fd000 (12288 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cac600000 (8388608 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cacee2000 (24576 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cad0d6000 (16384 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cad0f9000 (16384 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cad3d0000 (16384 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cad5bc000 (8192 bytes) Fri, May 19 2023 8:55:03 am | *** Preparing to test memory region 7f6cad5ef000 (4096 bytes) Fri, May 19 2023 8:55:04 am | .O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O Fri, May 19 2023 8:55:04 am | Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible. Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | ------ DUMPING CODE AROUND EIP ------ Fri, May 19 2023 8:55:04 am | Symbol: _Z34FP64_InnerProductSIMD8Ext_SSE_implPKvS0_m (base: 0x7f6cac43eec0) Fri, May 19 2023 8:55:04 am | Module: /opt/redis-stack/lib/redisearch.so (base 0x7f6cac2aa000) Fri, May 19 2023 8:55:04 am | $ xxd -r -p /tmp/dump.hex /tmp/dump.bin Fri, May 19 2023 8:55:04 am | $ objdump --adjust-vma=0x7f6cac43eec0 -D -b binary -m i386:x86-64 /tmp/dump.bin Fri, May 19 2023 8:55:04 am | ------ Fri, May 19 2023 8:55:04 am | 9:M 19 May 2023 00:55:04.612 # dump of function (hexdump of 141 bytes): Fri, May 19 2023 8:55:04 am | f30f1efa488d04d74839c7735bc5f157c90f1f8000000000c5f9101fc5e159064883c7404883c640c5f91067d0c5f9106fe0c5f91056f0c5f958c1c5d9594ed0c5f958c1c5d1594ee0c5f958c1c5f9104ff0c5f159cac5f158c84839f877b9c5f17cc1c30f1f4000c5f957c0c30f1f00f30f1efa4883ec08e883ffffffc5fb100d5bf10e004883c408c5f35cc0 Fri, May 19 2023 8:55:04 am | Function at 0x7f6cac43eec0 is _Z34FP64_InnerProductSIMD8Ext_SSE_implPKvS0_m Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | === REDIS BUG REPORT END. Make sure to include from START to END. === Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | Please report the crash by opening an issue on github: Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | http://github.com/redis/redis/issues Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | If a Redis module was involved, please open in the module's repo instead. Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | Suspect RAM error? Use redis-server --test-memory to verify it. Fri, May 19 2023 8:55:04 am | Fri, May 19 2023 8:55:04 am | Some other issues could be detected by redis-server --check-system Fri, May 19 2023 8:55:04 am | Illegal instruction (core dumped) ```
GuyAv46 commented 1 year ago

Hey! Thank you for reporting Can you share what client did you use, or if it was using the CLI? The embedding in the query seems to be missing. Did you omit it on purpose or did you add the crash report as it was?

iori0758 commented 1 year ago

@GuyAv46 thanks for reply,the client is on chatgpt-retrieval-plugin,https://github.com/openai/chatgpt-retrieval-plugin,I just follow the guide and post the query ,redis-stack-server docker containner crashed,detail on https://github.com/openai/chatgpt-retrieval-plugin/issues/265

rba100 commented 1 year ago

I think I'm seeing something related as I'm doing vector stuff with openai, which can't be a coincidence.

To reproduce: search_version:2.6.9

FT.CREATE
embeddings
SCHEMA vector_field VECTOR
FLAT
6
TYPE FLOAT32 
DIM 1536
DISTANCE_METRIC COSINE

I insert a few rows with a vector_field field via C# client StackExchange.Redis;

Then I run

var result = await db.ExecuteAsync("FT.SEARCH", "embeddings", "*=>[KNN 5 @vector_field $BLOB AS score]", "PARAMS", "2", "BLOB", embedding, "SORTBY", "score", "DIALECT", "2");

embedding is a byte[1536] built from float32's that have been taken as byte[4] and then concatenated.

So long as at least one item is the index the server crashes with

   17: sendChunk                                                                                                                                                                                  │
│   18: AREQ_Execute                                                                                                                                                                               │
│   19: RSSearchCommand                                                                                                                                                                            │
│   20: RedisModuleCommandDispatcher                                                                                                                                                               │
│              at /__w/redis-stack/redis-stack/redis/src/module.c:695:5                                                                                                                            │
│   21: call                                                                                                                                                                                       │
│              at /__w/redis-stack/redis-stack/redis/src/server.c:3750:5                                                                                                                           │
│   22: processCommand                                                                                                                                                                             │
│              at /__w/redis-stack/redis-stack/redis/src/server.c:4297:9                                                                                                                           │
│   23: processCommandAndResetClient                                                                                                                                                               │
│              at /__w/redis-stack/redis-stack/redis/src/networking.c:2105:9                                                                                                                       │
│   24: processInputBuffer                                                                                                                                                                         │
│              at /__w/redis-stack/redis-stack/redis/src/networking.c:2206:17                                                                                                                      │
│   25: callHandler                                                                                                                                                                                │
│              at /__w/redis-stack/redis-stack/redis/src/connhelpers.h:79:18                                                                                                                       │
│       connSocketEventHandler                                                                                                                                                                     │
│              at /__w/redis-stack/redis-stack/redis/src/connection.c:295:14                                                                                                                       │
│   26: aeProcessEvents                                                                                                                                                                            │
│              at /__w/redis-stack/redis-stack/redis/src/ae.c:427:17                                                                                                                               │
│   27: aeMain                                                                                                                                                                                     │
│              at /__w/redis-stack/redis-stack/redis/src/ae.c:487:9                                                                                                                                │
│   28: main                                                                                                                                                                                       │
│              at /__w/redis-stack/redis-stack/redis/src/server.c:6474:5                                                                                                                           │
│   29: __libc_start_main                                                                                                                                                                          │
│   30: _start

Possibly helpful:

------ DUMPING CODE AROUND EIP ------                                                                                                                                                            │
│ Symbol: _Z35FP32_InnerProductSIMD16Ext_SSE_implPKvS0_m (base: 0x7f03cc23ec50)                                                                                                                    │
│ Module: /opt/redis-stack/lib/redisearch.so (base 0x7f03cc0aa000)                                                                                                                                 │
│ $ xxd -r -p /tmp/dump.hex /tmp/dump.bin                                                                                                                                                          │
│ $ objdump --adjust-vma=0x7f03cc23ec50 -D -b binary -m i386:x86-64 /tmp/dump.bin                                                                                                                  │
│ ------                                                                                                                                                                                           │
│ 8:M 19 May 2023 19:20:14.583 # dump of function (hexdump of 141 bytes):                                                                                                                          │
│ f30f1efa488d04974839c77373c5f057c90f1f8000000000c5f8101fc5e059064883c7404883c640c5f81067d0c5f8106fe0c5f81056f0c5f858c1c5d8594ed0c5f858c1c5d0594ee0c5f858c1c5f8104ff0c5f059cac5f058c84839f877b9c5 │
│
iori0758 commented 1 year ago

@rba100 thanks for your information,i am new for redis search,Did u find a way to solve it

rba100 commented 1 year ago

No, this information is for the maintainer. Hopefully useful to them in some way when they look at this issue.

GuyAv46 commented 1 year ago

Thanks for the input @rba100 ! Can you please confirm if the embedded blob is present in the crashing command section (the argv dump)?

GuyAv46 commented 1 year ago

Also, are you both using docker images? and if so what is your host machine type? it might be related to running an intel/AMD build on an ARM machine

rba100 commented 1 year ago

@GuyAv46 I'm running redis/redis-stack-server:latest on AMD64. VM inception perhaps, but it's not ARM64. The host is an intel desktop machine running Proxmox, running VMs which are K8s nodes, which finally run the container on containerd.

I just tested ARM64 M1 Mac running Docker with exact same code and RediSearch does not crash. This bug only occurs when running on my AMDx64 setup and it reproducible 100%.

Unfortunately, I don't know what an argv dump is. I exec'd into the container and redis is not logging to anything other than standard out I think.

Other than the details above, the only clue is the message 'illegal instruction' at the end of the log which might suggest some low level stuff the VM doesn't like.

Happy to try things if it will help.

rba100 commented 1 year ago

Oh... I also tried using a very small vector of DIM 2, manually entering random bytes into redis-cli and this did not crash the AMD64 setup. So, bug might relate to the size of the vectors. I note that the random bytes I entered resulted in a distance score of inf so maybe the dodgy float values are detected and take a different code path. Could be a red herring.

GuyAv46 commented 1 year ago

we have hardware optimizations depending on the dimension and the host's hardware. dimensions smaller than 4 will not get any optimization so this code is safe for all architectures. the ...SSE... suggests that we chose 4-float vectorization. SSE operations should be available for almost any Intel/AMD 64-bit machine nowadays. I suspect this issue is related to some docker/k8 setup that manages to "fool" our optimization-choosing logic into choosing one with unsupported operations. Can you please share your setups? @rba100 maybe even CPU model or verify if it should support SSE?

rba100 commented 1 year ago

Host:

8 x Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (1 Socket)
Linux 5.15.30-2-pve #1 SMP PVE 5.15.30-3
Distribution: Proxmox 7.2-3

1st level virtual environment: Ubuntu 22.04 VMs running direct on host (not LXC containers) 2nd level virtual environment: containerd-1.5.13-linux-amd64 installed on these VMs

containerd-config.toml

version = 2
[plugins]
  [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
    runtime_type = "io.containerd.runc.v2"
    [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
      SystemdCgroup = true

On the both the VMs and also exec'ing into the redis container the output of CPU info is the same (sse and sse2 listed):

$ cat /proc/cpuinfo | grep sse
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx lm constant_tsc nopl xtopology cpuid tsc_known_freq pni cx16 x2apic hypervisor lahf_lm cpuid_fault pti

Just for fun I got an LLM in on the action and it got me to try this, which did not crash on the redis container itself:

#include <stdio.h>
#include <xmmintrin.h> // for SSE intrinsics

int main() {
    __m128 a = _mm_set_ps(1.0f, 2.0f, 3.0f, 4.0f);
    __m128 b = _mm_set_ps(4.0f, 3.0f, 2.0f, 1.0f);
    __m128 result;

    // Inline assembly to execute the 'addps' SSE instruction
    __asm__(
        "addps %[a], %[b]\n\t"
        "movaps %[b], %[result]"
        : [result] "=x"(result)
        : [a] "x"(a), [b] "0"(b)
    );

    float output[4];
    _mm_storeu_ps(output, result);

    printf("Result: %f, %f, %f, %f\n", output[0], output[1], output[2], output[3]);
    return 0;
}
gcc -o sse-addps sse-addps.c -msse
./sse-addps
Result: 5.000000, 5.000000, 5.000000, 5.000000
rba100 commented 1 year ago

@GuyAv46 hmm... looking at https://github.com/RedisAI/VectorSimilarity I see you list other instruction types as well. I am assuming this library is the one you use in RediSearch.

I notice AVX is listed as an instruction type that's used.

on both the container and the VM /proc/cpuinfo does not list avx stuff (and indeed blows up with a similar test program), however it is listed and works on the bare metal machine.

Is it possible this is the cause? I.e. the code checks for SSE and assumes the other families are present?

Apologies if I'm well off the mark here.

rba100 commented 1 year ago

Solved. Changed VM CPU type to 'host' and AVX etc is now available and RediSearch no longer crashes.

I guess this isn't your bug if its reasonable to assume modern instructions are available. I hope this isn't too common. The original issue reporter might have a different scenario.

GuyAv46 commented 1 year ago

Awesome! The function that caused your crash can be viewed here, and @iori0758 function is located here, and it should be safe even if you don't have any AVX instructions available. with your high dimension that is divisible by 16, if we chose SSE and not AVX it means something was not available for the VM. I would still expect that SSE commands will not crash, but maybe it happened because of permission of the VM regardless. @rba100 can you share how you set the CPU or link to some instructions on how to do so, for future reference?

rba100 commented 1 year ago

The default value for CPU emulation is kvm64

On the web UI for Proxmox you can change this with:

image

via command line it would be qemu-system-x86_64 [...] -cpu host [...] or something like that.

I'm sure there may be security issues relating to Spectre and whatnot by using host, however as a development lab this is fine for me. Production users may wish to consider going to the trouble of working out the minimum they need to emulate, e.g. -cpu SandyBridge or whatever they can get away with.