hanm commented on a change in pull request #1172: ZOOKEEPER-3594: Ability to 
skip proposing requests with error transactions
URL: https://github.com/apache/zookeeper/pull/1172#discussion_r360631564
 
 

 ##########
 File path: 
zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/LeaderHandler.java
 ##########
 @@ -0,0 +1,85 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.zookeeper.server.quorum;
+
+import org.apache.zookeeper.server.Request;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.util.List;
+
+/**
+ * This class is used to process commits on the Leader side.
+ *
+ * When -Dzookeeper.quorum.skipTxnEnabled=true:
+ *   After commit is processed, LeaderHandler will commit
+ *   the request and try to flush a queue of skipped transactions
+ *   that occurred right before that commit.
+ */
+public class LeaderHandler implements SkipRequestHandler {
+    private static final Logger LOG = 
LoggerFactory.getLogger(LeaderHandler.class);
 
 Review comment:
   logger is never used.. remove?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to