msokolov commented on PR #17054:
URL: https://github.com/apache/lucene/pull/17054#issuecomment-7056326251

   Instead we should disallow Max Conn one. It's nonsensical. Even two is 
basically degenerate, forcing a circle or a line. One can only be satisfied by 
isolated pairs
   
   Sent from [Proton Mail](https://proton.me/mail/home) for Android.
   
   -------- Original Message --------
   On Friday, 11/20/26 at 04:25 qiye ***@***.***> wrote:
   
   > 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.
   >
   > ---------------------------------------------------------------
   >
   > You can view, comment on, or merge this pull request online at:
   >
   > https://github.com/apache/lucene/pull/17054
   >
   > Commit Summary
   >
   > - 
[d349c76](https://github.com/apache/lucene/pull/17054/commits/d349c7615fdd9b5b2058862eff07c8a5b4dcd38c)
 Fix HNSW rebalanceGraph never terminating when maxConn is 1
   >
   > File Changes
   >
   > ([2 files](https://github.com/apache/lucene/pull/17054/files))
   >
   > -  M 
[lucene/core/src/java/org/apache/lucene/util/hnsw/InitializedHnswGraphBuilder.java](https://github.com/apache/lucene/pull/17054/files#diff-49e0f0667501e9ce29b50c6408c847586c6305e47cfcf424800ddf42763c635c)
 (20)
   > -  M 
[lucene/core/src/test/org/apache/lucene/util/hnsw/HnswGraphTestCase.java](https://github.com/apache/lucene/pull/17054/files#diff-06724576566992a5fc7616a273243e2bf185564d42105445c858a758a54ebacb)
 (25)
   >
   > Patch Links:
   >
   > - https://github.com/apache/lucene/pull/17054.patch
   > - https://github.com/apache/lucene/pull/17054.diff
   >
   > —
   > Reply to this email directly, [view it on 
GitHub](https://github.com/apache/lucene/pull/17054?email_source=notifications&email_token=AAHHUQPX2U4PPG4MTEJBROD52AEX5A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42TIMJQHE2DOMZTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVRTG633UMVZF6Y3MNFRWW),
 or 
[unsubscribe](https://github.com/notifications/unsubscribe-auth/AAHHUQL6STJ7SMWNGLZHFP352AEX5AVCNFSNUABFKJSXA33TNF2G64TZHMZTIMJWGMYTGNJQHNEXG43VMU5TMNJQHA3DCMJUHE3KC5QC).
   > Triage notifications, keep track of coding agent tasks and review pull 
requests on the go with GitHub Mobile for 
[iOS](https://github.com/notifications/mobile/ios/AAHHUQK22WPI3LP6JEDNEST52AEX5A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42TIMJQHE2DOMZTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVJTG633UMVZF62LPOM)
 and 
[Android](https://github.com/notifications/mobile/android/AAHHUQPU35BT3K3WDCG53ST52AEX5A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42TIMJQHE2DOMZTHGTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE).
 Download it today!
   > You are receiving this because you are subscribed to this thread.Message 
ID: ***@***.***>


-- 
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