-
Notifications
You must be signed in to change notification settings - Fork 28
Description
On Mac AND Linux, Perl is modern (5.16 and 5.22 respectively), using freshly downloaded Kafka 1.07.
No Kafka or Java on these machines, purely clients. The server is external.
The example consumer code in 'An Example' will fail 90+% of the time in fetch with the $@ being
Error: (-1003) Cannot receive: topic='xxx'
Trace begun at /usr/local/share/perl/5.22.1/Kafka/Connection.pm line 1592
Kafka::Connection::_error('Kafka::Connection=HASH(0xe24908)', -1003, 'topic='xxx'', 'request', 'HASH(0x10597b8)', 'io_error', undef) called at /usr/local/share/perl/5.22.1/Kafka/Connection.pm line 1020
Kafka::Connection::receive_response_to_request('Kafka::Connection=HASH(0xe24908)', 'HASH(0x10597b8)', undef, 0.1) called at /usr/local/share/perl/5.22.1/Kafka/Consumer.pm line 366
Kafka::Consumer::fetch('Kafka::Consumer=HASH(0xe248d8)', 'xxx', 0, 0, 1000000) called at t line 22
eval {...} at t line 22
<10% of the time, I get the messages. On the actual Kafka server, the same script gets 100% success and is instantaneous.