qidaye opened a new pull request, #17054:
URL: https://github.com/apache/lucene/pull/17054

   ### Description
   
   When maxConn=1, a merge that reuses the HNSW graph of a segment with 
deletions never terminates.
   `InitializedHnswGraphBuilder#rebalanceGraph` computes the target number of 
nodes per level as
   `size * (1/M)^level`. When M=1, this is always equal to `size` and never 
drops to 0. The loop only
   exits when this value reaches 0, so it never exits.
   
   When M=1, use a per-level ratio of 1/e, which matches the level distribution 
in HnswGraphBuilder.
   For M > 1 the behavior is unchanged.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to