[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16085103#comment-16085103
 ] 

ASF GitHub Bot commented on ZOOKEEPER-2770:
-------------------------------------------

Github user eribeiro commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/307#discussion_r127110615
  
    --- Diff: src/java/main/org/apache/zookeeper/server/Request.java ---
    @@ -21,20 +21,27 @@
     import java.nio.ByteBuffer;
     import java.util.List;
     
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
     import org.apache.jute.Record;
     import org.apache.zookeeper.KeeperException;
     import org.apache.zookeeper.ZooDefs.OpCode;
     import org.apache.zookeeper.common.Time;
     import org.apache.zookeeper.data.Id;
    +import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
     import org.apache.zookeeper.server.quorum.flexible.QuorumVerifier;
     import org.apache.zookeeper.txn.TxnHeader;
     
    +
     /**
      * This is the structure that represents a request moving through a chain 
of
      * RequestProcessors. There are various pieces of information that is 
tacked
      * onto the request as it is processed.
      */
     public class Request {
    +    private static final Logger LOG = LoggerFactory
    +            .getLogger(Request.class);
    --- End diff --
    
    No need to break line here.


> ZooKeeper slow operation log
> ----------------------------
>
>                 Key: ZOOKEEPER-2770
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2770
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Karan Mehta
>         Attachments: ZOOKEEPER-2770.001.patch, ZOOKEEPER-2770.002.patch, 
> ZOOKEEPER-2770.003.patch
>
>
> Log the client and request details if the server discovers, when finally 
> processing the request, that the current time minus arrival time of the 
> request is beyond a configured threshold. 
> Look at the HBase {{responseTooSlow}} feature for inspiration. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to