Skip to content

[rdkafka] remove topic conf, deprecated #1101

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

Merged
merged 12 commits into from
Oct 9, 2020

Conversation

nick-zh
Copy link
Contributor

@nick-zh nick-zh commented Oct 5, 2020

This will fix #970, the use of topic conf is deprecated, all configs should be set over the global config.
To avoid a break / major, i adapted this internally where config on both levels (global, topic) will be treated / set equally.

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 5, 2020

So the failing test is due to the fact that you guys are using librdkafka:0.11.1, i created another PR to use the lowest version that php-rdkafka supports, but my PR will only work against librdkafka:1.x (which is also already 1.5y old)

See my comment in #1103 , if you guys want to stick to librdkafka:0.11.1 i think we need to go with #1013 from @Steveb-p

@makasim
Copy link
Member

makasim commented Oct 8, 2020

@nick-zh is it ready ?

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 8, 2020

@makasim so if we go with my PR, it means dropping support for anything below librdkafka:1.x, if you still want to support librdkafka:0.11.6 (last version before 1.x), we need to update #1013 from @Steveb-p, up to you ✌️

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 8, 2020

If you want to go with my PR, maybe i could add an exception when somebody tries to use it with a lib version that is not supported, let me know

@makasim
Copy link
Member

makasim commented Oct 8, 2020

yes, please

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 8, 2020

will get right on it

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 8, 2020

@makasim done, but i think you need to rebuild the docker image enqueue/dev and push to docker hub, i adjusted it on this branch to reflect the lib change

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 8, 2020

Seems there is more failing when trying to build the Dockerfile. I fixed it in #1104 to avoid mixing to much in this PR, hope that is ok ✌️

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 9, 2020

@makasim thx for merging the docker PR, give me a short shout when the image has been pushed to dockerhub, then i can merge master here and the tests should pass ✌️

@@ -68,6 +68,7 @@ install:
- echo "memory_limit=2048M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- php ./bin/fix-symfony-version.php "$SYMFONY_VERSION"
- composer install
- sed -i 's/525568/16777471/' vendor/kwn/php-rdkafka-stubs/stubs/constants.php
Copy link
Contributor Author

@nick-zh nick-zh Oct 9, 2020

Choose a reason for hiding this comment

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

this is needed for the tests, since the stub has a really old lib version, otherwise the new check will trigger

Copy link
Member

Choose a reason for hiding this comment

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

A comment near the line would be great.

@nick-zh
Copy link
Contributor Author

nick-zh commented Oct 9, 2020

@makasim PR should be good to go now. The failing tests are G-PubSub related, from what i can see, this happened before my changes as well

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.

[rdkafka] RdKafka\Conf::setDefaultTopicConf() is deprecated
2 participants