-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove old SimpleClient / SimpleProducer / SimpleConsumer #1196
Conversation
a3a1205
to
5cb41a9
Compare
9fbab3e
to
9bbf96a
Compare
I spent a while updating this last night, there are a few tests of the new It is refreshing poking through the codebase on this branch as it's immediately obvious where things are w/o the confusion of wondering if I'm looking at code used by the old clients or the new clients. |
9bbf96a
to
73b2491
Compare
This is definitely a big one. Re sequencing, I would love to get a final 1.4.X patch release out with any remaining bugfixes for stability. Then we can release this as either 1.5.0 or 2.0. |
IMHO this should be a 2.0 release. Massive breakage everywhere. It would pair well with the new Admin client for the 2.0 release. And 👍 on a bugfix release for the 1.4.X series... I am actually just about to start profiling some code that hit a massive performance regression after switching from |
f2e21ee
to
f9e36d0
Compare
bb6049e
to
a79775c
Compare
29b2b08
to
9756d51
Compare
I think tests should now fully pass for this, assuming Travis passes for #1886. There is one commit of Also, still need to update the docs to clearly mention the deprecation/deletion of the old clients. |
cdc7b15
to
c1b4786
Compare
Tests are green. |
c1b4786
to
14a02a2
Compare
Just rebased to pickup the new updates from the Hoping we can get this merged in the next few weeks so that it doesn't keep hanging out there needing to be rebased... and so we don't have folks accidentally creating |
The tests are now failing because more So those need to be migrated for this to work. Perhaps @ulrikjohansson can handle it when he fixes up his tests. |
14a02a2
to
da97f64
Compare
Many thanks to @ulrikjohansson for migrating the I just rebased this, hopefully Travis works fine. |
In the 2.0 release, we're removing: * `SimpleClient` * `SimpleConsumer` * `SimpleProducer` * Old partitioners used by `SimpleProducer`; these are superceded by the `DefaultPartitioner` These have been deprecated for several years in favor of `KafkaClient` / `KafkaConsumer` / `KafkaProducer`. Since 2.0 allows breaking changes, we are removing the deprecated classes. Additionally, since the only usage of `unittest` was in tests for these old Simple* clients, this also drops `unittest` from the library. All tests now run under `pytest`.
da97f64
to
da5e8f3
Compare
It bothers me that we've had two folks nicely submit PR's and then I had to ask them to update tests to drop the Unittest support so that they didn't block this... so I'm planning to merge this. I think at this point we should do a I filed #1926 to track the documentation of the change for old users. |
@jeffwidman @dpkp
|
@jeffwidman @dpkp yeah i am trying to use a round robin partitioner and it is gone now? how come it was removed? was it buggy? |
A bunch of old code cleanup as part of bumping to version 2.
SimpleClient
/SimpleProducer
/SimpleConsumer
and all associated code.KafkaClient
/KafkaProducer
/KafkaConsumer
Notably this will drop our test runs from ~6-7 minutes to ~2-3 minutes per run... really convenient.
Fix #1193
This change is