Scott Nei
03/26/2025, 7:37 PMJason Bosco
03/26/2025, 8:05 PMnum_documents
field in the response, to verify the state of the nodes.Scott Nei
03/26/2025, 8:26 PMJason Bosco
03/26/2025, 8:29 PMScott Nei
03/27/2025, 2:59 PMcurl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=*&filter_by=productId%3A%3D319952>' \
curl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=*&filter_by=catalogIds%3A37480&filter_by=productId%3A%3D319952>' \
A redacted version of the document is attached. You can see the catalogId is in the array. None of the items in the array work to filter_by, until we write a new document that adds some new value to the array. Then it works. Updating other parts of the document don't help. We have to add some new value to the catalogId array to get Typesense to acknowledge and of the existing values in it.Scott Nei
03/27/2025, 4:00 PMJason Bosco
03/27/2025, 4:26 PMfilter_by
parameters which is invalid syntax.Scott Nei
03/27/2025, 5:08 PMcurl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=&per_page=32&page=1&query_by=barcodes%2Cskus%2Cmanufacturer.mfrNumbers%2Cdescription%2CsupplierDescriptions&filter_by=productId%3A%3D319083%20%26%26%20catalogIds%3A%3D37480>' \
curl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=&per_page=32&page=1&query_by=barcodes%2Cskus%2Cmanufacturer.mfrNumbers%2Cdescription%2CsupplierDescriptions&filter_by=productId%3A%3D319083>' \
Same result if I use a single filter_by.
On the syntax of filter_by, I've never had a problem applying several filter_by clauses when I'm testing in postman. I didn't realize that could be an issue. In our app, we generate a single filter_by.Scott Nei
03/27/2025, 8:47 PMJason Bosco
03/27/2025, 9:27 PMJason Bosco
03/27/2025, 9:27 PMJason Bosco
03/27/2025, 9:33 PMIs there anything we can do to mitigate the situation?We're manually trying to resync your cluster right now
Jason Bosco
03/27/2025, 10:16 PMJason Bosco
03/27/2025, 10:19 PMScott Nei
03/27/2025, 11:00 PMScott Nei
03/28/2025, 1:12 PMScott Nei
03/28/2025, 1:38 PMScott Nei
03/28/2025, 3:10 PMScott Nei
03/28/2025, 4:44 PMJason Bosco
03/28/2025, 5:15 PMwith no collections on the cluster, we still see ~700MB RAM usageTypesense typically reserves some memory for anticipated future use, and doesn't release all memory back to the OS. This is by design for performance reasons. So when you create a new collection and add some data, it will re-use previously reserved RAM. Your other observation about RAM growth is most likely a result of the JOIN issue which has been plaguing us unfortunately. I wouldn't be surprised if the seemingly stuck write queue is just repeatedly trying to allocate small amount of memory on each iteration. The fix should be out in the next week 🤞
Scott Nei
03/28/2025, 5:16 PMJason Bosco
03/28/2025, 5:17 PMScott Nei
03/28/2025, 5:17 PMJason Bosco
03/31/2025, 10:33 PMGuillermo Purro
04/08/2025, 9:56 AMcurl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=&per_page=32&page=1&query_by=barcodes%2Cskus%2Cmanufacturer.mfrNumbers%2Cdescription%2CsupplierDescriptions&filter_by=productId%3A%3D319083%20%26%26%20catalogIds%3A%3D37480>' \
curl --location '<https://hostname.a1.typesense.net/collections/products_prod/documents/search?q=&per_page=32&page=1&query_by=barcodes%2Cskus%2Cmanufacturer.mfrNumbers%2Cdescription%2CsupplierDescriptions&filter_by=productId%3A%3D319083>' \
I am pointing this out to you just because if you were thinking the problem was limited to multi-instance clusters (only affecting the followers), it is not, making it harder for us to mitigate in our Production environment (even our current daily full-sync is not fixing this situation).
We are thinking of creating new collections and loading all the documents. Unfortunately, this is the only way we have found to solve this. So, we would like to know:
1) Is it worth keeping these "corrupted" collections to let you investigate this issue? If we do this, we'll consume more RAM in our Production server, and we do not want to do this unnecessarily.
2) Could you share this situation internally so as to confirm you will be finding and fixing the root cause of this? we are extremely concerned since we are experiencing these issues in our Prod env (we are not able to do a downgrade since we are using features included in v28), and they are affecting us seriously.
Thanks for your help. Any suggestions will be welcome.Jason Bosco
04/08/2025, 7:20 PMGuillermo Purro
04/09/2025, 12:38 PMGuillermo Purro
04/10/2025, 1:29 AMGuillermo Purro
04/10/2025, 1:37 AMScott Nei
04/14/2025, 4:13 PMJason Bosco
04/14/2025, 4:26 PMJuan Rodriguez
04/16/2025, 3:32 AMJuan Rodriguez
04/16/2025, 3:32 AMI20250416 02:54:31.262137 7119 raft_server.cpp:1144] Timed snapshot succeeded!
I20250416 02:54:31.266991 7121 log.cpp:1150] log save_meta /searchdata/typesense-parker/data/state/log/log_meta first_log_index: 1757608 time: 4861
I20250416 02:54:31.457677 7052 raft_server.cpp:921] Dummy write to <http://10.142.0.6:6108/health>, status = 200, response = {"ok":true}
I20250416 02:54:31.457782 7052 raft_server.cpp:527] save_snapshot done
I20250416 02:54:41.727140 7005 raft_server.cpp:692] Term: 11, pending_queue: 0, last_index: 1757616, committed: 1757616, known_applied: 1757616, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 44464916
I20250416 02:54:52.148834 7005 raft_server.cpp:692] Term: 11, pending_queue: 0, last_index: 1757616, committed: 1757616, known_applied: 1757616, applying: 0, pending_writes: 0, queued_writes: 0, local_sequence: 44464916
E20250416 02:54:59.571058 7005 http_client.cpp:231] CURL failed. Code: 56, strerror: Failure when receiving data from the peer, method: GET, url: <http://10.142.0.6:6108/status>
E20250416 02:54:59.571285 7005 raft_server.cpp:828] Error, /status end-point returned bad status code 500
Log file created at: 2025/04/16 02:55:00
Running on machine: xavier
Running duration (h:mm:ss): 0:00:00
Log line format: [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
I20250416 02:55:00.787528 29312 typesense_server_utils.cpp:353] Starting Typesense nightly
I20250416 02:55:00.787658 29312 typesense_server_utils.cpp:356] Typesense is using jemalloc.
Juan Rodriguez
04/16/2025, 3:36 AMJuan Rodriguez
04/16/2025, 2:43 PMKishore Nallan
04/16/2025, 2:54 PMJuan Rodriguez
04/16/2025, 2:55 PMJuan Rodriguez
04/16/2025, 4:17 PMJuan Rodriguez
04/16/2025, 4:17 PMJuan Rodriguez
04/16/2025, 4:17 PM