[KIP-932]: Use separate handles for adminclient apis#5388
[KIP-932]: Use separate handles for adminclient apis#5388Pratyush Ranjan (PratRanj07) wants to merge 10 commits intodev_kip-932_queues-for-kafkafrom
Conversation
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
2548f7a to
838354d
Compare
Pranav Rathi (pranavrth)
left a comment
There was a problem hiding this comment.
First pass comments.
.semaphore/semaphore.yml
Outdated
| always: | ||
| commands: | ||
| # Upload test 0172 debug log as artifact if it exists (test failed) | ||
| - '[ -f artifacts/test_0172_debug.log ] && artifact push job artifacts/test_0172_debug.log --destination debug-logs/test_0172_debug_amd64.log || true' |
There was a problem hiding this comment.
We might need different file name for different runs as newer file will override the new one and we don't have a way to know which job created the file.
.semaphore/semaphore.yml
Outdated
| always: | ||
| commands: | ||
| # Upload test 0172 debug log as artifact if it exists (test failed) | ||
| - '[ -f artifacts/test_0172_debug.log ] && artifact push job artifacts/test_0172_debug.log --destination debug-logs/test_0172_debug_amd64.log || true' |
There was a problem hiding this comment.
Update retention to maybe 2 days max.
| * @brief Configure share group using a dedicated producer handle. | ||
| * Admin client APIs should not reuse the share consumer handle. | ||
| */ | ||
| static void configure_share_group(const char *group_name, |
There was a problem hiding this comment.
This is a generic function which can be moved to the common test file. Can be used even for normal consumer.
- Use better generic naming.
- Move to common
test.handtest.cfiles - make it extensible for other config types as well
| * @brief Delete topic using a dedicated producer handle. | ||
| * Admin client APIs should not reuse the share consumer handle. | ||
| */ | ||
| static void delete_topic_admin(const char *topic) { |
There was a problem hiding this comment.
There is a delete topic function already in test common files. Use that internally. What we want to do is to create a function which deletes topics and doesn't take any parameter. Do this in test commons file as well.
tests/0171-share_consumer_consume.c
Outdated
| * @brief Configure share group using a dedicated producer handle. | ||
| * Admin client APIs should not reuse the share consumer handle. | ||
| */ | ||
| static void configure_share_group(const char *group_name, |
There was a problem hiding this comment.
Use common function.
| * @brief Delete topic using a dedicated producer handle. | ||
| * Admin client APIs should not reuse the share consumer handle. | ||
| */ | ||
| static void delete_topic_admin(const char *topic) { |
There was a problem hiding this comment.
Remove usage from here as well.
There was a problem hiding this comment.
Let's remove usage of test_share_consumer_get_rk from the tests altogether. Check if we can remove from 0155 as well. Otherwise remove the usage from test.c as well.
There was a problem hiding this comment.
In 0155 the test_share_consumer_get_rk is generally used to find the assignments for the particular client instance. I dont think we can remove that usage yet until we modify the underlying functions.
There was a problem hiding this comment.
In test.c also it is only used to get the client instance name for the subscribe topics and subscriptions for the logging purpose only. I have changed its usage in the adminclient apis
.semaphore/semaphore.yml
Outdated
| agent: | ||
| machine: | ||
| type: s1-macos-15-arm64-8 | ||
| epilogue: |
There was a problem hiding this comment.
This need to be enabled in any of the job. I have seen most of the failures in "Linux Ubuntu amd64: integration tests". Check how it can be done.
| --version "$TEST_KAFKA_GIT_REF" \ | ||
| --cpversion "$TEST_CP_VERSION" \ | ||
| --cmd "TESTS_SKIP_BEFORE=0170 python run-test-batches.py $TEST_ARGS") | ||
| --cmd "TESTS_SKIP_BEFORE=0170 TESTS=0170- python run-test-batches.py $TEST_ARGS" 2>&1 | tee "$DEBUG_LOG") |
There was a problem hiding this comment.
Why TESTS=0170-?
|
Update the PR title as its already in review. There is a typo in the title. Fix that as well. |
0d30b3c to
21d15ab
Compare
21d15ab to
2721688
Compare
No description provided.