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

added check if commit order is bad in sync mode #802

Conversation

gingersamurai
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Issue Number: #783

@gingersamurai gingersamurai self-assigned this Aug 3, 2023
@gingersamurai gingersamurai added enhancement New feature or request topic issue for topic service no slo no changelog community labels Aug 3, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.22% 🎉

Comparison is base (66a967f) 66.29% compared to head (9ac8cac) 66.52%.
Report is 3 commits behind head on master.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #802      +/-   ##
==========================================
+ Coverage   66.29%   66.52%   +0.22%     
==========================================
  Files         233      233              
  Lines       23065    23079      +14     
==========================================
+ Hits        15292    15353      +61     
+ Misses       6976     6933      -43     
+ Partials      797      793       -4     
Flag Coverage Δ
53.94% <0.00%> (+0.23%) ⬆️
go-1.17.x 66.09% <100.00%> (+0.08%) ⬆️
go-1.19.x 66.26% <100.00%> (+0.10%) ⬆️
go-1.20.x 66.37% <100.00%> (+0.37%) ⬆️
integration 53.94% <0.00%> (+0.23%) ⬆️
macOS 41.15% <100.00%> (+0.01%) ⬆️
ubuntu 41.12% <100.00%> (-0.03%) ⬇️
unit 41.23% <100.00%> (-0.01%) ⬇️
windows 41.18% <100.00%> (+<0.01%) ⬆️
ydb-22.5 53.68% <0.00%> (+0.32%) ⬆️
ydb-23.1 53.62% <0.00%> (+0.31%) ⬆️
ydb-23.2 53.55% <0.00%> (+0.01%) ⬆️
ydb-23.2-slim 53.52% <0.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
internal/topic/topicreaderinternal/committer.go 87.91% <ø> (-0.68%) ⬇️
...al/topic/topicreaderinternal/stream_reader_impl.go 70.33% <100.00%> (-0.38%) ⬇️

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gingersamurai gingersamurai marked this pull request as draft August 4, 2023 12:06
@gingersamurai gingersamurai force-pushed the feature/Return_error_if_commit_order_is_bad_for_sync_commit_mode branch from 567432a to ba719e6 Compare August 4, 2023 12:08
@gingersamurai gingersamurai marked this pull request as ready for review August 4, 2023 12:21
@@ -108,6 +108,66 @@ func TestTopicStreamReaderImpl_CommitStolen(t *testing.T) {
xtest.WaitChannelClosed(t, commitReceived)
xtest.WaitChannelClosed(t, readRequestReceived)
})
xtest.TestManyTimesWithName(t, "wrong order commit with sync commit mode", func(t testing.TB) {
Copy link
Member

Choose a reason for hiding this comment

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

Make name without space please - it will allow to find test be Ctrl+F. Now it will difficult, because space will replace with underscore (_) in test name.

@rekby rekby merged commit 2b953aa into ydb-platform:master Aug 4, 2023
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community enhancement New feature or request no slo topic issue for topic service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants