Commit Graph

27 Commits

Author SHA1 Message Date
Manikumar Reddy 8dfdcfd02c KAFKA-5750; Elevate log messages for denials to INFO in SimpleAclAuthorizer
Author: Manikumar Reddy <manikumar.reddy@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>

Closes #3698 from omkreddy/KAFKA-5750
2017-09-27 16:39:12 +01:00
Ismael Juma 5d9563d95f MINOR: Switch ZK client logging to INFO
Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Jun Rao <junrao@gmail.com>

Closes #3409 from ijuma/tweak-log-config
2017-06-22 16:56:06 +01:00
Ismael Juma a4794b11b2 KAFKA-5486: org.apache.kafka logging should go to server.log
The current config sends org.apache.kafka and any unspecified logger to
stdout. They should go to `server.log` instead.

Author: Ismael Juma <ismael@juma.me.uk>

Reviewers: Damian Guy <damian.guy@gmail.com>

Closes #3402 from ijuma/kafka-5486-org.apache.kafka-logging-server.log
2017-06-22 12:48:53 +01:00
Ben Stopford 0baea2ac13 KIP-101: Alter Replication Protocol to use Leader Epoch rather than High Watermark for Truncation
This PR replaces https://github.com/apache/kafka/pull/2743 (just raising from Confluent repo)

This PR describes the addition of Partition Level Leader Epochs to messages in Kafka as a mechanism for fixing some known issues in the replication protocol. Full details can be found here:

[KIP-101 Reference](https://cwiki.apache.org/confluence/display/KAFKA/KIP-101+-+Alter+Replication+Protocol+to+use+Leader+Epoch+rather+than+High+Watermark+for+Truncation)

*The key elements are*:
- Epochs are stamped on messages as they enter the leader.
- Epochs are tracked in both leader and follower in a new checkpoint file.
- A new API allows followers to retrieve the leader's latest offset for a particular epoch.
- The logic for truncating the log, when a replica becomes a follower, has been moved from Partition into the ReplicaFetcherThread
- When partitions are added to the ReplicaFetcherThread they are added in an initialising state. Initialising partitions request leader epochs and then truncate their logs appropriately.

This test provides a good overview of the workflow `EpochDrivenReplicationProtocolAcceptanceTest.shouldFollowLeaderEpochBasicWorkflow()`

The corrupted log use case is covered by the test
`EpochDrivenReplicationProtocolAcceptanceTest.offsetsShouldNotGoBackwards()`

Remaining work: There is a do list here: https://docs.google.com/document/d/1edmMo70MfHEZH9x38OQfTWsHr7UGTvg-NOxeFhOeRew/edit?usp=sharing

Author: Ben Stopford <benstopford@gmail.com>
Author: Jun Rao <junrao@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Jun Rao <junrao@gmail.com>

Closes #2808 from benstopford/kip-101-v2
2017-04-06 14:51:09 -07:00
Parth Brahmbhatt 0990b6ba6a KAFKA-2211: Adding simpleAclAuthorizer implementation and test cases.
Author: Parth Brahmbhatt <brahmbhatt.parth@gmail.com>

Reviewers: Ismael Juma <ismael@juma.me.uk>, Jun Rao <junrao@gmail.com>

Closes #195 from Parth-Brahmbhatt/KAFKA-2211
2015-09-21 17:47:18 -07:00
Raman Gupta 15f9e2762d kafka-1801; Remove non-functional variable definition in log4j.properties; patched by Raman Gupta; reviewed by Jun Rao 2014-12-02 16:35:02 -08:00
Jay Kreps 23d7fc4706 KAFKA-1251: Add metrics to the producer. 2014-03-27 20:52:42 -07:00
Joe Stein 77118a935e KAFKA-1289 Misc. nitpicks in log cleaner for new 0.8.1 features patch by Jay Kreps, reviewed by Sriram Subramanian and Jun Rao 2014-03-04 15:30:59 -05:00
Jun Rao 58789d7cbe kafka-1127; kafka and zookeeper server should start in daemon mode and log to correct position; patched by Raymond Liu; reviewed by Jun Rao 2013-11-18 21:02:00 -08:00
Jun Rao 75d95d9b07 merge from 0.8 da4512174b and resolve conflicts 2013-09-11 09:49:48 -07:00
Jay Kreps 14af713252 Misc. minor house-keeping fixes: add reasonable GC settings, fix up README, fix up example configs, fix the logging for tools, use a log directory for logs instead of the root directory. 2013-08-05 10:10:18 -07:00
Jun Rao 731ba9007d kafka-823; merge 0.8 (51421fcc01) to trunk; patched by Jun Rao; reviewed by Jay Kreps 2013-04-17 21:52:04 -07:00
Swapnil Ghike 2457bc49ef KAFKA-513 Add state change log to Kafka brokers; reviewed by Neha Narkhede 2013-03-06 09:35:35 -08:00
Jun Rao 4f2742d60d merge from 0.8 and resolve conflicts 2013-03-03 20:20:41 -08:00
Neha Narkhede 4d8fb1eebc KAFKA-736 Add an option to the 0.8 producer to mimic 0.7 producer behavior; reviewed by Jun Rao and Sriram Subramanian 2013-02-22 17:48:10 -08:00
Jun Rao 8103b4f635 trivial change to save kafka broker log to a file, in addition to console 2013-02-13 14:12:44 -08:00
Jay Kreps e7edb5e1e9 KAFKA-631 Implement a log cleaner for Kafka. Reviewed by Neha. 2013-01-28 19:31:17 -08:00
Jun Rao c02e7fd690 trivial fix to log4j.properties, which stops outputing info level message after kafka-683 2013-01-13 13:59:10 -08:00
Neha Narkhede dbe87f6df3 KAFKA-683 Fix correlation id in all requests sent to kafka; reviewed by Jun Rao 2013-01-11 14:06:42 -08:00
Neha Narkhede 03eb903ce2 KAFKA-683 Fix correlation id in all requests sent to kafka; reviewed by Jun Rao 2013-01-11 14:06:00 -08:00
Neha Narkhede d4f3eff171 KAFKA-489 Add metrics collection and graphs to the system test framework; patched by Neha Narkhede; reviewed by Jun Rao and John Fung
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/branches/0.8@1378666 13f79535-47bb-0310-9956-ffa450edef68
2012-08-29 18:07:58 +00:00
Neha Narkhede 5861046d09 KAFKA-440 Regression/system test framework; patched by John Fung; reviewed by Neha Narkhede
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/branches/0.8@1376147 13f79535-47bb-0310-9956-ffa450edef68
2012-08-22 17:16:26 +00:00
Neha Narkhede fa09aacdbd KAFKA-141 Check and make sure that the files that have been donated have been updated to reflect the new ASF copyright;patched by nehanarkhede; reviewd by jjkoshy
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1180185 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 19:51:28 +00:00
Neha Narkhede f34dfc002d Reverting accidental commit 1180110, which is pending review for KAFKA-141
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1180117 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 17:33:43 +00:00
Neha Narkhede a99becbe49 Minor patch, removing the .gitigore file
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1180110 13f79535-47bb-0310-9956-ffa450edef68
2011-10-07 17:18:56 +00:00
Jun Rao 4cf1f16746 fix log4j to avoid duplicating log entries in kafka
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1158447 13f79535-47bb-0310-9956-ffa450edef68
2011-08-16 21:07:54 +00:00
Edward Jay Kreps 642da2f28c Initial checkin of Kafka to Apache SVN. This corresponds to 709afe4ec7 except that git specific files have been removed and code has been put into trunk/branches/site/etc. This is just a copy of master, branches and history are not being converted since we can't find a good tool for it.
git-svn-id: https://svn.apache.org/repos/asf/incubator/kafka/trunk@1152970 13f79535-47bb-0310-9956-ffa450edef68
2011-08-01 23:41:24 +00:00