milvus_datacoord_stored_rows_num and milvus_querynode_entity_num metrics are not synchronizing #41212
Unanswered
navneetrajput06
asked this question in
Q&A and General discussion
Replies: 2 comments 6 replies
-
Which version of your milvus?
The milvus v2.5.8 fixed another bug about delete: |
Beta Was this translation helpful? Give feedback.
6 replies
-
@yhmo @XuanYang-cn in that if i call compaction manually it should be compacted with uniq rows. its not even happening when i am calling compaction manually. When i say compact L0 segments stay there and they are not compacting to L1. but when i called flush it went fine both metrics came as same number of rows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
milvus_datacoord_stored_rows_num and milvus_querynode_entity_num metrics are not synchronizing at any point of time even after stopping upset operations on collection.
As per documentation, When you perform an upsert operation, it will overwrite (delete and replace) an existing entity if a specified field already exists in the collection.
• When data is deleted, entities are only marked as "logically deleted"
• Space is freed through two processes:
◦ Compaction: Automatically runs in the background to merge smaller segments and remove logically deleted data
◦ Garbage Collection: A separate process that periodically removes "Dropped" segments to free up storage space
So deleted rows from upsert operations will eventually be cleaned up through these background processes, but there may be a delay between deletion and actual space reclamation.
However, even after stopping all operations on the collection for over 20 days, these two metrics have not aligned and continue to show different values — although they ideally should converge over time.
Could you please highlight the reason for this scenario?
Beta Was this translation helpful? Give feedback.
All reactions