Skip to content
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

Коротких Виктор / ИТМО DWS / Stage 6 #211

Merged
merged 57 commits into from
May 11, 2024

Conversation

vitekkor
Copy link
Contributor

No description provided.

vitekkor and others added 30 commits March 13, 2024 23:11
# Conflicts:
#	src/main/java/ru/vk/itmo/test/viktorkorotkikh/ConsistentHashingManager.java
#	src/main/java/ru/vk/itmo/test/viktorkorotkikh/LSMServerImpl.java
#	src/main/java/ru/vk/itmo/test/viktorkorotkikh/LSMServiceImpl.java
#	src/main/java/ru/vk/itmo/test/viktorkorotkikh/http/LSMConstantResponse.java
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 23836 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 23835 lines exceeds the maximum allowed for the inline comments feature.

@incubos incubos requested a review from vladimir-bf April 28, 2024 13:33
@incubos incubos requested review from incubos and removed request for vladimir-bf April 29, 2024 16:02
@incubos incubos assigned incubos and unassigned vladimir-bf Apr 29, 2024
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 46490 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 47610 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 47610 lines exceeds the maximum allowed for the inline comments feature.

Copy link
Member

@incubos incubos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть несколько вопросов и замечаний.

this.lsmRangeWriter = lsmRangeWriter;
sendNextRangeChunks();

if (this.lsmRangeWriter.hasChunks()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нет ли здесь ошибки? У нас ещё есть неотправленные чанки, а мы переходим к обработке следующего входящего запроса...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, это меня тоже смутило, когда я рефакторинг кода делал. Но отталкивался я от реализации метода sendResponse - там как раз идёт отправка ответа и переход к обработке следующего. Да, там ситуация другая с той точки зрения того, что мы по сути отправляем весь ответ сразу. Но нам могло не повезти и мы могли записать в сокет не весь ответ. Ну или же банально - у нас queueHead != null и мы наш Response добавили в очередь. Тогда по сути мы также пойдем дальше обрабатывать запросы.

Поэтому я тут сомневаюсь

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В существующей реализации sendResponse() мы ставим весь готовый Response в очередь на отправку в сокет, поэтому можем переходить к обработке следующего запроса, потому что его ответ уйдёт в сокет после предыдущего.
В случае streaming всё совсем не так.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 47627 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 47625 lines exceeds the maximum allowed for the inline comments feature.

Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 47616 lines exceeds the maximum allowed for the inline comments feature.

Copy link
Member

@incubos incubos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 баллов.

@incubos incubos merged commit 8028e6a into polis-vk:main May 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants