Преглед изворни кода

ZOOKEEPER-1340. multi problem - typical user operations are generating ERROR level messages in the server (phunt via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1240949 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar пре 13 година
родитељ
комит
477ebb0056

+ 3 - 0
CHANGES.txt

@@ -121,6 +121,9 @@ BUGFIXES:
   to exist. (phunt via mahadev)
   to exist. (phunt via mahadev)
 
 
   ZOOKEEPER-1327. there are still remnants of hadoop urls. (Harsh J via mahadev)
   ZOOKEEPER-1327. there are still remnants of hadoop urls. (Harsh J via mahadev)
+
+  ZOOKEEPER-1340. multi problem - typical user operations are generating ERROR level 
+  messages in the server (phunt via mahadev)
  
  
 IMPROVEMENTS:
 IMPROVEMENTS:
 
 

+ 3 - 3
src/java/main/org/apache/zookeeper/server/DataTree.java

@@ -849,10 +849,10 @@ public class DataTree {
                     break;
                     break;
             }
             }
         } catch (KeeperException e) {
         } catch (KeeperException e) {
-             LOG.warn("Failed: " + debug, e);
-             rc.err = e.code().intValue();
+            LOG.debug("Failed: " + debug, e);
+            rc.err = e.code().intValue();
         } catch (IOException e) {
         } catch (IOException e) {
-            LOG.warn("Failed:" + debug, e);
+            LOG.debug("Failed:" + debug, e);
         }
         }
         /*
         /*
          * A snapshot might be in progress while we are modifying the data
          * A snapshot might be in progress while we are modifying the data

+ 4 - 3
src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java

@@ -542,11 +542,12 @@ public class PrepRequestProcessor extends Thread implements RequestProcessor {
                             ke = e;
                             ke = e;
                             type = OpCode.error;
                             type = OpCode.error;
                             txn = new ErrorTxn(e.code().intValue());
                             txn = new ErrorTxn(e.code().intValue());
-                            LOG.error(">>>> Got user-level KeeperException when processing "
-                                    + request.toString()
+
+                            LOG.info("Got user-level KeeperException when processing "
+                                    + request.toString() + " aborting remaining multi ops."
                                     + " Error Path:" + e.getPath()
                                     + " Error Path:" + e.getPath()
                                     + " Error:" + e.getMessage());
                                     + " Error:" + e.getMessage());
-                            LOG.error(">>>> ABORTING remaing MultiOp ops");
+
                             request.setException(e);
                             request.setException(e);
 
 
                             /* Rollback change records from failed multi-op */
                             /* Rollback change records from failed multi-op */