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

Merged
merged 79 commits into from
May 19, 2024

Conversation

SuDarina
Copy link
Contributor

@SuDarina SuDarina commented Apr 24, 2024

No description provided.

SuDarina and others added 30 commits February 19, 2024 02:19
# Conflicts:
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceIml.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/TestServer.java
# Conflicts:
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceIml.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/TestServer.java
@incubos incubos self-requested a review April 29, 2024 16:00
@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 23827 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 23870 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 25312 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 25313 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 25313 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.

Есть существенные замечания и вопросы -- ждём исправлений/ответов.

Это решение было принято, чтобы отправлять через `session.write` весь чанк с данными, а не каждую его часть
(length, crlf, <key>, \n, value) по отдельность. В качестве альтернативы можно как раз отправлять каждую часть через session.write,
тогда аллокацию ByteArrayBuilder можно избежать, но, так как на профиле локов, фигурирует в основном только метод Session.write,
вероятно, лишнее использование Session.write может привести к затратам на синхронизацию, отчего в конце концов пострадает latency
Copy link
Member

Choose a reason for hiding this comment

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

У нас в сессию пишет один поток, поэтому никакого contention нет и затраты на синхронизацию не изменятся.

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.

Всё ещё ждём исправлений, иначе максимум 7 баллов.
Нужно пофиксить конфликты перед merge.

SuDarina added 2 commits May 14, 2024 23:45
…range-requests

# Conflicts:
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.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 25562 lines exceeds the maximum allowed for the inline comments feature.

SuDarina and others added 3 commits May 15, 2024 22:05
# Conflicts:
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/SelfRequestHandler.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java
#	src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java
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.

12 баллов.

if (!iterator.hasNext()) {
write(EntryChunkUtils.LAST_BYTES, 0, EntryChunkUtils.LAST_BYTES.length);
}
scheduleClose();
Copy link
Member

Choose a reason for hiding this comment

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

Мы могли не всё отправить, но всегда инициируем закрытие сессии, верно?

@incubos incubos merged commit 4791f35 into polis-vk:main May 19, 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