Граф коммитов

211 Коммитов

Автор SHA1 Сообщение Дата
Magnus Edenhill 034187d9da Fix Cygwin compilation, again 2014-02-01 13:25:34 +01:00
Magnus Edenhill fc6658a500 Dont propagate ALL_BROKERS_DOWN event if we're terminating (issue #65) 2014-02-01 10:55:40 +07:00
Magnus Edenhill b5e165cc56 examples: Use rd_kafka_errno2err() to provide proper errors (issue #65) 2014-01-29 10:39:51 +07:00
Magnus Edenhill 4614e14162 Emit ..ERR__ALL_BROKERS_DOWN error after specific broker error (issue #64) 2014-01-28 20:23:16 +07:00
Magnus Edenhill 7e0f492b82 Added rd_kafka_errno2err() for converting errno to proper rdkafka errors (issue #39)
This also changes the behaviour of rd_kafka_consume*() to set errno
to ESRCH for unknown partitions (was ENOENT) to be in line with
rd_kafka_produce() behaviour.
2014-01-28 01:14:10 +07:00
Magnus Edenhill 15f810ebc2 Line width fix 2014-01-27 23:48:58 +07:00
Magnus Edenhill 8c7049a325 Proper errcode for broker transport failures, not just __FAIL (issue #64)
__TRANSPORT and __BAD_MSG were propogated as __FAIL, now fixed.
2014-01-27 23:48:47 +07:00
Magnus Edenhill df32d08556 Removed outdated (0.7) C++ rdkafkacpp.h interface 2014-01-26 20:32:04 +07:00
Magnus Edenhill 045c559d9d Trigger RD_KAFKA_RESP_ERR__ALL_BROKERS_DOWN error when all brokers are down (issue #64) 2014-01-26 20:04:27 +07:00
Magnus Edenhill d3486e654a rdkafka_example: Removed debug printouts 2014-01-26 10:56:44 +07:00
Magnus Edenhill 19cee5a4e2 Better test cleanup 2014-01-26 00:06:59 +07:00
Magnus Edenhill a2bfffe541 Immediate failure on unknown topic (issue #39) and fixed out-of-order problem for produced messages.
rd_kafka_produce() will now return -1 and set errno to ENOENT when
the topic is unknown in the cluster, and the DR callback will use
new error code RD_KAFKA_RESP_ERR__UNKNOWN_TOPIC to indicte the same.

This also fixes an issue where messages could be produced out of order
during initial broker setup in some circumstances.
2014-01-26 00:06:27 +07:00
Magnus Edenhill 651707db3d Test framework fixes and doc 2014-01-25 23:56:49 +07:00
Magnus Edenhill 0b08c51a8f Test framework provides random seed 2014-01-25 23:48:39 +07:00
Magnus Edenhill 66f83f24ea Internal topic count was not properly decreased on topic destroy 2014-01-25 23:47:24 +07:00
Magnus Edenhill 41b123329c Plugged memory leak on exit: internal broker ops queue 2014-01-25 23:42:21 +07:00
Magnus Edenhill 71fe8a30bc Added friendly hint when message.max.bytes is configured too low. 2014-01-25 23:41:42 +07:00
Magnus Edenhill d24d5000ca Source code line length fix 2014-01-25 23:41:15 +07:00
Magnus Edenhill 6eb26d92a7 Fixed duplicate broker names in broker fail logs 2014-01-25 23:40:12 +07:00
Magnus Edenhill 5c90832a6d Bump version number to 0.8.2 2014-01-25 23:39:49 +07:00
Magnus Edenhill 6de926cc34 rdkafka_example: Added raw output (-A) and quiet (-q) options
This makes rdkafka_example usable as an arbitrary kafka consumer
who's output is the message payload.
2014-01-25 23:39:25 +07:00
Magnus Edenhill 644d8683dc Whitespace fixups 2014-01-25 23:36:38 +07:00
Magnus Edenhill 5e9fcd9df5 Proper librdkafka.a dependency for examples 2014-01-17 14:53:48 +07:00
Magnus Edenhill 877888f21a Merge pull request #63 from gpatmore/master
fixed syntax error: missing paren
2014-01-16 23:49:07 -08:00
Gregory Patmore fff0b72db0 fixed syntax error: missing paren 2014-01-17 00:36:36 -05:00
Magnus Edenhill b176b21e87 Added 'make check' target to check availability of all build artifacts 2014-01-17 10:07:46 +07:00
Magnus Edenhill 43c8f922bb Dont attempt to gzip compress 0 length message chunks (issue #60) 2014-01-17 09:40:13 +07:00
Magnus Edenhill c644561abd Use SO_NOSIGPIPE or MSG_NOSIGNAL based on platform (issue #49) 2014-01-17 09:08:12 +07:00
Magnus Edenhill 9fcc463dd1 Added configuration tests 2014-01-16 11:49:54 +07:00
Magnus Edenhill 340868a0f6 Remove SIGPIPE handlers, no longer needed. 2014-01-16 11:49:28 +07:00
Magnus Edenhill a9940f1e69 Added more configuration API functions
rd_kafka_[topic_]conf_dup() - duplicate config object
rd_kafka_[topic]_conf_destroy() - destroy config object

rd_kafka_[topic_]conf_dump() - dump configuration values to string array

rdkafka_example: added '-X dump' switch to dump configuration objects.
2014-01-16 11:47:47 +07:00
Magnus Edenhill 67a8cc0e87 Fixed ftruncate compile warning on gcc-4.6 2014-01-15 22:28:33 +07:00
Magnus Edenhill 8988df836d Allow producing and consuming empty messages (issue #60) 2014-01-15 22:14:38 +07:00
Magnus Edenhill 42287a4b82 snappy clang compilation fix 2014-01-15 22:00:01 +07:00
Magnus Edenhill f39a340eb9 The application no longer needs to ignore SIGPIPE 2014-01-15 21:56:25 +07:00
Magnus Edenhill 9d303abbef Added consumer offset management (local file) 2014-01-15 21:56:25 +07:00
Magnus Edenhill f38e0e2916 Added simple timers 2014-01-15 21:56:25 +07:00
Magnus Edenhill 1de5ed3c20 Log OP_ERR right away, without need for poll, if no error_cb is set. 2014-01-15 21:56:25 +07:00
Magnus Edenhill 43fa3adf18 Added salebab's phpkafka to list of users 2014-01-15 21:56:25 +07:00
Magnus Edenhill d7d1695cf4 examples: Added support for canonical "end","beginning","stored" to -o offset arg 2014-01-15 21:56:25 +07:00
Magnus Edenhill fc65a56d52 rdkafka_example: Added -X prop=val 2014-01-15 21:56:25 +07:00
Magnus Edenhill 72da05212a rdkafka_performance: -X topic... properties did not work 2014-01-15 21:56:25 +07:00
Magnus Edenhill ae11db745c Fix .so file generation error introduced lately 2014-01-15 09:53:18 +07:00
Magnus Edenhill 9c9c8b0a57 Merge pull request #58 from dvanliere/master
Two minor fixes to improve bash scripts on OSX.
2014-01-09 14:20:52 -08:00
Diederik van Liere 975caa0234 Use cross-platform compatible shell color codes. 2014-01-09 22:22:29 +01:00
Diederik van Liere 94aa9cb349 Deprecate uname -o as that is a non-standard option.
Use the platform compatible uname -s option, see also
http://en.wikipedia.org/wiki/Uname for a nice overview of
interaction of options and platforms.
2014-01-09 22:20:13 +01:00
Magnus Edenhill 80a9d7a1fc Merge pull request #57 from stromnet/master
RHEL (CentOS) 5 compilation fixes
2014-01-09 08:45:54 -08:00
Johan Ström b5b0b724f6 RHEL 5 does not have htole16/le32toh
These are from RHEL 6 endian.h
2014-01-09 17:30:39 +01:00
Johan Ström f5999b4ea4 RHEL 5 does not have TAILQ_CONCAT
rdkafka.c includes rdkafka_int.h which uses TAILQ_CONCAT. Added rdsysqueue.h include to fix
2014-01-09 17:30:39 +01:00
Johan Ström 71f7310ead RHEL 5 complains on "warning: value computed is not used" 2014-01-09 17:30:36 +01:00