Commit Graph

36 Commits

Author SHA1 Message Date
Alex Damian
57268e666c Added time_point overloads for creating timestamps. (#128)
* Added time_point overloads for creating timestamps.

* aliased std::chrono types
2018-10-25 07:39:22 -07:00
Matias Fontanini
a2d17a6f45 Test suite fixes (#124)
* Move polling strategy adapter definition into test_utils.cpp

* Use a random consumer group id in every test
2018-10-20 20:32:32 -07:00
Alex Damian
fbe3759fed Header support implementation (#115)
* header support implementation

* Fixed issue when ptr is null and doesn't have a cloner function

* Code complete with test cases

updated travis file with v0.11.5

* Added compile time check for rdkafka header support version

* Changes per last code review

* Using brace list initializers
2018-10-16 10:58:05 -07:00
Alex Damian
eb46b8808e Bug fixes for sync flush and add_tracker (#91)
* fixes for sync flush and also add_tracker

* added flag for flush
2018-06-18 14:46:31 -07:00
accelerated
972a008aa4 Changed test to produce twice the same MessageBuilder 2018-06-11 15:45:41 -04:00
accelerated
71e6e2e4e5 added retry logic for producers 2018-06-10 13:00:55 -04:00
accelerated
ffc64b9a5a Remove valgrind warning 2018-05-29 10:05:56 -04:00
accelerated
6144330835 added test case for polling strategy refactored the strategy class 2018-05-29 09:55:30 -04:00
Alex Damian
429ec92369 Buffered producer thread safe (#72)
* Thread safe buffered producer

* Using single mutex version

* Changed based on feedback

* Changes based on latest review

* Added flush counter
2018-05-28 18:33:36 -07:00
Alex Damian
841e632fbd Allow access to the user-supplied delivery callback. (#66)
* Allow access to the user-supplied delivery callback.

* Remove valgrind warning

* Added buffer size watermark

* added ability to produce a message directly

* Updated on_delivery_report function
2018-05-24 20:59:41 -07:00
Matias Fontanini
cb2c8877d8 Move tests to use catch instead of googletest (#56)
* Port buffer test to use Catch2

* Move compacted topic processor test to Catch2

* Move configuration tests to Catch2

* Rename configuration test cases

* Move topic partition list test to Catch2

* Move handle base tests to Catch2

* Move producer tests to Catch2

* Move consumer tests to catch2

* Use CHECK on tests when appropriate

* Remove googletest

* Show tests' progress as they run

* Update message when Catch2 is not checked out

* Remove references to googletest

* Run cppkafka_tests manually on travis

* Print amount of time taken by each test case
2018-04-24 03:20:48 +01:00
Matias Fontanini
179e669c06 Assume testing kafka cluster is >= 0.10 2017-10-14 08:41:33 -07:00
Matias Fontanini
bb900f21cb Allow clearing buffered messages on buffered producer 2017-04-24 20:08:26 -07:00
Matias Fontanini
aab182c4ea Allow producing messages without buffering them in buffered producer 2017-04-23 11:23:37 -07:00
Matias Fontanini
dbb547889b Allow getting consumer group information 2017-04-16 19:45:03 -07:00
Matias Fontanini
9ecad71be1 Remove Partition class 2017-04-16 14:51:06 -07:00
Matias Fontanini
f924eb68e7 Allow making no key/payload copies in BufferedProducer 2017-04-16 10:14:12 -07:00
Matias Fontanini
91cd9a2957 Make producer test work on librdkafka v0.9.4 2017-04-15 18:13:56 -07:00
Matias Fontanini
e26d7e7db2 Add MessageBuilder and use it on producer classes 2017-04-15 16:46:37 -07:00
Matias Fontanini
55f93e1f0d Add buffered producer class 2016-10-29 11:29:26 -07:00
Matias Fontanini
b768d52791 Take key before value on Producer::produce 2016-08-14 15:49:23 -07:00
Matias Fontanini
cf6ac1675b Add Error class 2016-06-27 21:43:20 -07:00
Matias Fontanini
c615664f12 Add Message::get_timestamp 2016-06-19 21:00:25 -07:00
Matias Fontanini
0fb0afc4f4 Remove zookeeper support 2016-06-16 20:22:36 -07:00
Matias Fontanini
8db1df0998 Add conversion/comparison operators to Buffer 2016-06-15 20:47:40 -07:00
Matias Fontanini
c4054eaae0 Allow constructing Buffer from a std::string 2016-06-14 19:15:46 -07:00
Matias Fontanini
9751acd8df Add some documentation 2016-06-12 17:49:11 -07:00
Matias Fontanini
0cf8369ef9 Add zookeeper support 2016-06-12 10:43:38 -07:00
Matias Fontanini
7708e945b7 Add get/query offset wrappers 2016-06-05 18:14:46 -07:00
Matias Fontanini
65a60f1690 Allow getting config options and add multiple overloads for set 2016-06-05 15:08:40 -07:00
Matias Fontanini
efd2321828 Allow setting default topic config 2016-06-05 10:04:48 -07:00
Matias Fontanini
4fccf277e0 Add partitioner callback to topic configuration 2016-06-04 19:15:32 -07:00
Matias Fontanini
8e37440f58 Add config callbacks 2016-06-04 18:16:21 -07:00
Matias Fontanini
82393b558e Add offset commit and delivery report callbacks 2016-05-31 07:26:31 -07:00
Matias Fontanini
6374062f47 Add more tests to producer 2016-05-23 21:03:34 -07:00
Matias Fontanini
4475209ce1 Add first producer test 2016-05-22 19:47:23 -07:00