[GitHub] kafka pull request #4075: MINOR: reduce partition state machine debug loggin...

2017-10-16 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/kafka/pull/4075


---


[GitHub] kafka pull request #4075: MINOR: reduce partition state machine debug loggin...

2017-10-16 Thread onurkaraman
GitHub user onurkaraman opened a pull request:

https://github.com/apache/kafka/pull/4075

MINOR: reduce partition state machine debug logging

PartitionStateMachine.electLeaderForPartition logs all partition states in 
the cluster. This leads to quadratic logging behavior since 
PartitionStateMachine.electLeaderForPartition itself gets called on a 
per-partition basis.

This patch reduces the logging so that only the single partition undergoing 
leader election gets its state logged.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/onurkaraman/kafka 
reduce-partition-state-machine-debug-logging

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/kafka/pull/4075.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #4075


commit dc6bfa553e73ffccd1e604963e076c78d8ddcd69
Author: Onur Karaman 
Date:   2017-10-16T17:36:16Z

MINOR: reduce partition state machine debug logging

PartitionStateMachine.electLeaderForPartition logs all partition states in 
the cluster. This leads to quadratic logging behavior since 
PartitionStateMachine.electLeaderForPartition itself gets called on a 
per-partition basis.

This patch reduces the logging so that only the single partition undergoing 
leader election gets its state logged.




---