Closed Steveb-p closed 4 years ago
I've tried to pinpoint issues that prevented integration tests from passing.
Apart from the linked issue with a separate PR regarding segmentation fault, it seems that in most cases consumption mostly no longer returns Kafka's message object, especially on EOF
(RD_KAFKA_RESP_ERR__PARTITION_EOF
on $msg->err
). This in turn causes test scripts to time out.
From what I understand, this boils down to consumption methods to block until new message is available, instead of returning early when current end of topic is reached.
I've created a draft PR with changes that attempt to adjust tests and comments for things that are worth noting.
@Steveb-p RD_KAFKA_RESP_ERR__PARTITION_EOF
is no longer returned per default, you can turn that on again with the setting enable.partition.eof
but i think it is great, if both behaviours are supported anyway probably :smile:
@Steveb-p
RD_KAFKA_RESP_ERR__PARTITION_EOF
is no longer returned per default, you can turn that on again with the settingenable.partition.eof
but i think it is great, if both behaviours are supported anyway probably
@nick-zh I've tried tinkering with that particular setting in tests expecting it to do that exactly, but it didn't look like it had any effect. But it was late at night and maybe I missed something.
Anyway it looks like it's just a test issue, not incompatibility. Some documentation might need updating as well, which I'll give a try in PR if that's the case.
@Steveb-p what is the current state on this? Do you need any assistance with #223, i think it would be really cool if we could fix this :)
@nick-zh I'll look into it again this weekend, once I'm done with enqueue.
4f97323bee66519956635c636a9d77a2564839b6
)I've run tests to prepare myself to give a try to add topic API to phprdkafka and I've noticed that integration tests fail on librdkafka 1.0.0, while they work just fine against 0.11.6. This affects integration tests only, hence probably why they went undetected in regard to CI, since travis seems to run non-integration tests only.
Here is output of my 1.0.0 run:
I've double checked that tests run correct librdkafka version (output via
phpinfo()
in.phpt
file:When looking into test output, I have for example in
bug115.out
:I can see in my Kafka instance log that some communication occurs and it roughly resembles what I've seen for 0.11.6 librdkafka.
For reference that my Kafka is configured properly here's my results for
0.11.6
:And exerpt from
phpinfo()
: