-
Notifications
You must be signed in to change notification settings - Fork 47
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
Conversation
# 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
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.
The PR diff size of 23836 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 23835 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 46490 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 47610 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 47610 lines exceeds the maximum allowed for the inline comments feature.
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.
Есть несколько вопросов и замечаний.
src/main/java/ru/vk/itmo/test/viktorkorotkikh/LSMServerImpl.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/vk/itmo/test/viktorkorotkikh/LSMServiceImpl.java
Outdated
Show resolved
Hide resolved
this.lsmRangeWriter = lsmRangeWriter; | ||
sendNextRangeChunks(); | ||
|
||
if (this.lsmRangeWriter.hasChunks()) { |
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.
Нет ли здесь ошибки? У нас ещё есть неотправленные чанки, а мы переходим к обработке следующего входящего запроса...
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.
Да, это меня тоже смутило, когда я рефакторинг кода делал. Но отталкивался я от реализации метода sendResponse - там как раз идёт отправка ответа и переход к обработке следующего. Да, там ситуация другая с той точки зрения того, что мы по сути отправляем весь ответ сразу. Но нам могло не повезти и мы могли записать в сокет не весь ответ. Ну или же банально - у нас queueHead != null и мы наш Response добавили в очередь. Тогда по сути мы также пойдем дальше обрабатывать запросы.
Поэтому я тут сомневаюсь
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.
В существующей реализации sendResponse()
мы ставим весь готовый Response
в очередь на отправку в сокет, поэтому можем переходить к обработке следующего запроса, потому что его ответ уйдёт в сокет после предыдущего.
В случае streaming всё совсем не так.
src/main/java/ru/vk/itmo/test/viktorkorotkikh/reports/stage6/report.md
Outdated
Show resolved
Hide resolved
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.
The PR diff size of 47627 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 47625 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 47616 lines exceeds the maximum allowed for the inline comments feature.
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.
10 баллов.
No description provided.