-
Notifications
You must be signed in to change notification settings - Fork 544
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
kafka replay speed: remove records-per-fetch configuration #9906
kafka replay speed: remove records-per-fetch configuration #9906
Conversation
763b0e0
to
f697d2b
Compare
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
f697d2b
to
135b872
Compare
Signed-off-by: Dimitar Dimitrov <[email protected]>
Signed-off-by: Dimitar Dimitrov <[email protected]>
@@ -834,76 +831,6 @@ func TestConcurrentFetchers(t *testing.T) { | |||
pollFetchesAndAssertNoRecords(t, fetchers) | |||
}) | |||
|
|||
t.Run("staggered production with one less than multiple of concurrency and records per fetch", func(t *testing.T) { |
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.
now that we don't do exact number of records this test becomes to a large extent non-deterministic. Its purpose was to test an off-by-one condition to the previous test, but achieving this with tests is really hard now because of byte estimations
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.
Nice work, LGTM!
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.
Docs look good. Thanks, @dimitarvdimitrov !
I just noticed that a test hung in CI. Could be worth investigating if we introduced a regression (if so I can't see it just by looking at the code). |
i'm totally beat today. i'll check tomorrow |
Signed-off-by: Dimitar Dimitrov <[email protected]>
oh boy. This test hangs when it fails for some reason. Locally, i see the assertion failing, but the test never terminates. In CI we only observe it never terminating. The test failure was more complicated than I anticipated, but at least now I understand it. I've added comments to explain the asserted values now. |
Signed-off-by: Dimitar Dimitrov <[email protected]>
What this PR does
This is the next step after #9892. We want to control only the number of bytes for fetching because that's more indicative of the load we'd receive. It also allows us to fetch in smaller increments when records become big.
Which issue(s) this PR fixes or relates to
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.