Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix sphinx bullet pointsfix-sphinx-docs | Jeff Widman | 2018-01-08 | 1 | -1/+1 |
| | |||||
* | Fix typo in _try_authenticate_plain (#1333) | everpcpc | 2017-12-28 | 1 | -1/+1 |
| | |||||
* | Add security layer negotiation to the GSSAPI authentication. (#1283) | Andre Araujo | 2017-12-26 | 1 | -22/+43 |
| | | | | | | | | | | | | | | | | | | When trying to establish a connection with Kafka using SASL with the GSSAPI authentication mechanism the connection was hanging an timing out after 60 secons. On the Kafka broker side I noticed that the SaslServerAuthenticator was going from the AUTHENTICATE to the FAILED state. The GSSAPI auth implementation was missing the second handshake defined in RFC 2222, which happens after the security context is established. This handshake is used by the client and server to negotiate the security layer (QoP) to be used for the connection. Kafka currently only support the "auth" QoP, so the implementation in this commit doesn't make it configurable, but this can be extended later. With this change I was able to successfully connect to a Kerberos-enabled Kafka broker using the SASL_PLAINTEXT protocol and the GSSAPI mechanism. | ||||
* | Raise non-API exceptions (#1316) | Jeff Widman | 2017-12-21 | 1 | -5/+1 |
| | | | | | | | | | | | | | The original intent was to catch API exceptions (errors returned by the broker when trying to produce a message) and delegate them to the messages' futures. This is copied from the Java producer. However, we were accidentally catching all exceptions, thereby hiding exceptions from users unless they explicitly check the result of the future. Much better to raise client-side errors directly in the foreground so the user is immediately aware of them and can decide how to handle. Fix #1274 | ||||
* | KAFKA-3888 Use background thread to process consumer heartbeats (#1266) | Dana Powers | 2017-12-21 | 9 | -682/+870 |
| | |||||
* | Minor Exception cleanup | Jeff Widman | 2017-12-12 | 4 | -6/+6 |
| | |||||
* | Use non-deprecated exception handling | Jeff Widman | 2017-12-12 | 1 | -1/+1 |
| | | | Pulls in the fix upstream from https://github.com/mhils/backports.socketpair/pull/1 | ||||
* | Raise better struct pack/unpack errors (#1320) | Jeff Widman | 2017-12-12 | 1 | -4/+8 |
| | |||||
* | Followup cleanup to #1304 | Jeff Widman | 2017-12-08 | 1 | -2/+1 |
| | | | https://github.com/dpkp/kafka-python/pull/1304/files#r155842880 | ||||
* | Refactor dns lookup in BrokerConnection (#1312) | Dana Powers | 2017-12-08 | 1 | -61/+49 |
| | |||||
* | optimize util.crc32 (#1304) | Ofek Lev | 2017-12-08 | 1 | -8/+15 |
| | |||||
* | use python standard max value (#1303) | lukeWx | 2017-12-07 | 4 | -4/+4 |
| | |||||
* | changed for to use enumerate() (#1301) | Benn Roth | 2017-12-06 | 1 | -2/+1 |
| | |||||
* | Fix two bugs in printing bytes instance | Andre Araujo | 2017-11-27 | 1 | -1/+1 |
| | | | | | | | | | Bug 1: When `value` is None, trying to call `len(None)` throws an exception. Bug 2: When len(`value`) <= 100, the code currently prints b'' rather than `value`. | ||||
* | Revert ffc7caef13a120f69788bcdd43ffa01468f575f9 / PR #1239 | Dana Powers | 2017-11-16 | 1 | -7/+2 |
| | | | | The change caused a regression documented in issue #1290 | ||||
* | Use correct casing for MB | Jeff Widman | 2017-11-15 | 2 | -2/+2 |
| | | | | | | These values refer to Megabytes, not Megabits. Fix #1295 | ||||
* | Replace periods (java) with underscores (python) | Jeff Widman | 2017-11-07 | 1 | -2/+2 |
| | |||||
* | Use socket timeout of request_timeout_ms to prevent blocking forever on send ↵ | Dana Powers | 2017-10-25 | 1 | -6/+7 |
| | | | | (#1281) | ||||
* | Handle lookup_coordinator send failures (#1279) | Dana Powers | 2017-10-24 | 1 | -5/+11 |
| | |||||
* | Add DefaultRecordBatch implementation aka V2 message format parser/builder. ↵ | Taras Voinarovskyi | 2017-10-25 | 10 | -23/+932 |
| | | | | | (#1185) Added bytecode optimization for varint and append/read_msg functions. Mostly based on avoiding LOAD_GLOBAL calls. | ||||
* | Fix more gssapi errors (#1280) | Dana Powers | 2017-10-24 | 1 | -1/+4 |
| | |||||
* | Fix timestamp not passed to RecordMetadata (#1273) | Taras Voinarovskyi | 2017-10-22 | 4 | -16/+56 |
| | | | | | | | | * Fix timestamp not being passed to RecordMetadata properly * Add more tests for LegacyBatch * Fix producer test for recordmetadata | ||||
* | Fixup for PR 1264 -- required to propagate configuration to BrokerConnection | Dana Powers | 2017-10-21 | 1 | -0/+3 |
| | |||||
* | Fixup for PR 1258 / _try_authenticate | Dana Powers | 2017-10-21 | 1 | -1/+4 |
| | |||||
* | Merge pull request #1258 from dpkp/pending_completions | Taras Voinarovskyi | 2017-10-21 | 3 | -30/+63 |
|\ | | | | | Move callback processing from BrokerConnection to KafkaClient | ||||
| * | Move callback processing from BrokerConnection to KafkaClientpending_completions | Dana Powers | 2017-10-15 | 3 | -30/+63 |
| | | |||||
* | | Explicitly check for None rather than falsey | Jeff Widman | 2017-10-19 | 1 | -3/+3 |
| | | | | | | | | Be pedantic about checking for identity rather than equality to avoid issues like #1237 / 411bc08f214b7afc36f11bde2047096c06467088 | ||||
* | | Fix overriding sasl_kerberos_service_name in KafkaConsumer / KafkaProducer ↵ | Nathanael Smith | 2017-10-17 | 2 | -0/+6 |
| | | | | | | | | (#1264) | ||||
* | | Cleanup gssapi code; fix bug report re AttributeError. (#1262) | Dana Powers | 2017-10-16 | 1 | -10/+9 |
| | | |||||
* | | Fix docstring | Jeff Widman | 2017-10-16 | 1 | -3/+4 |
|/ | |||||
* | Fix SASL authentication bugs (#1257) | Dana Powers | 2017-10-15 | 1 | -23/+34 |
| | | | | | | * Use _send_bytes_blocking in BrokerConnection * _try_authenticate should call recv() so that futures are resolved * _sasl_auth_future can be reset if recv() causes disconnect * validate sasl_mechanism against SaslHandShakeResponse enabled_mechanisms | ||||
* | Merge pull request #1252 from dpkp/legacy_records_refactor | Taras Voinarovskyi | 2017-10-14 | 16 | -281/+922 |
|\ | | | | | Refactor MessageSet and Message into LegacyRecordBatch | ||||
| * | Added limit of 100 bytes for Bytes debug printslegacy_records_refactor | Taras Voinarovskiy | 2017-10-14 | 1 | -0/+4 |
| | | |||||
| * | Added minor fixes for PR review | Taras | 2017-10-12 | 4 | -18/+7 |
| | | |||||
| * | Fix tests and rebase problems | Taras | 2017-10-12 | 1 | -2/+1 |
| | | |||||
| * | Remove the check for timestamp None in producer, as it's done in RecordBatch ↵ | Taras | 2017-10-12 | 3 | -22/+7 |
| | | | | | | | | | | | | anyway. Minor abc doc fixes. | ||||
| * | Fix snappy compression on PyPy | Taras | 2017-10-12 | 1 | -4/+5 |
| | | |||||
| * | Refactor MessageSet and Message into LegacyRecordBatch to later support v2 ↵ | Taras | 2017-10-11 | 15 | -270/+933 |
| | | | | | | | | message format | ||||
* | | KAFKA-4034: Avoid unnecessary consumer coordinator lookup (#1254) | Dana Powers | 2017-10-11 | 4 | -21/+74 |
|/ | |||||
* | Merge pull request #1245 from dpkp/KAFKA_3977_defer_fetch_parsing | Taras Voinarovskyi | 2017-10-11 | 1 | -261/+237 |
|\ | | | | | KAFKA-3977: defer fetch response parsing and raise exceptions to user | ||||
| * | More testsKAFKA_3977_defer_fetch_parsing | Dana Powers | 2017-10-08 | 1 | -0/+5 |
| | | |||||
| * | Avoid sys.maxint; not supported on py3 | Dana Powers | 2017-10-08 | 1 | -2/+4 |
| | | |||||
| * | KAFKA-3977: Defer fetch parsing for space efficiency, and to raise ↵ | Dana Powers | 2017-10-07 | 1 | -261/+230 |
| | | | | | | | | exceptions to user | ||||
* | | Check for disconnects during ssl handshake and sasl authentication (#1249) | Dana Powers | 2017-10-10 | 1 | -31/+42 |
| | | |||||
* | | Always wait for completion during SASL/GSSAPI authentication (#1248) | Dana Powers | 2017-10-10 | 1 | -26/+15 |
| | | |||||
* | | Add kafka.protocol.parser.KafkaProtocol w/ receive and send (#1230) | Dana Powers | 2017-10-10 | 3 | -146/+226 |
| | | |||||
* | | Expand metrics docs (#1243) | Jeff Widman | 2017-10-08 | 2 | -10/+26 |
|/ | | | | | | * Expand metrics docstrings * Document metrics interface in readme * Use six.iteritems(d) rather than d.items() * Use Sphinx warning syntax | ||||
* | Bump version for development | Dana Powers | 2017-10-07 | 1 | -1/+1 |
| | |||||
* | Release 1.3.51.3.5 | Dana Powers | 2017-10-07 | 1 | -1/+1 |
| | |||||
* | Add method to ensure a valid topic name (#1238) | Niklas Mollenhauer | 2017-10-07 | 1 | -3/+28 |
| |