-
Notifications
You must be signed in to change notification settings - Fork 740
Refactor FillVectorIndex state machine (#18579) #19128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🟢 |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
a418b19 to
4f0f917
Compare
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
4f0f917 to
82c36dc
Compare
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InitSingleKMeans: метод абсолютно confusing, не понятно ни что он делает ни как ведёт себя
- проверка что все списки шардов пустые --- надо её как-то понятно назвать и вынести вверх (вызывать InitSingleKMeans только если да)
- Cluster2Shards.lower_bound + InvalidShardIdx --- какая-то магия, надо сделать понятный метод возращающий список шардов по parent
- AddShard зачем принимает статус, пусть проверяет внутри
- то что кластер не добавляется если у него больше одного шарда никак не понять не вычитывая код пол дня
предлагаю сделать явные проверки на это в местах вызова этой функции
итого эта функция кажется совсем не нужна и переписывается в набор ифов там где мы делаем переходы
InitMultiKMeans: аналогично, назначение функции и что она делает не читается
- цикл с формированием списка шардов надо вынести в понятную функцию (шарды у которых один кластер?)
- внутри меняется KMeans.State, но не персистится, как будто в такой функции тоже состояние надо менять снаружи её
скорее всего получается эта функция не нужна, как и InitSingleKMeans
Упростил как обсудили вчера, также упростил Cluster2Shards :-) должно быть теперь понятно |
kungasc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправить чуть ещё
0b00b2d to
6aa2600
Compare
6aa2600 to
665208d
Compare
|
Тестик reboots упал, пришлось 1 строчку поправить) позеленеет и попрошу перелайкать |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ DetailsTest history | Ya make output | Test bloat
⚪ DetailsTest history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
Changelog category