This is an automated email from the ASF dual-hosted git repository.

adelapena pushed a commit to branch cassandra-3.0
in repository https://gitbox.apache.org/repos/asf/cassandra.git


The following commit(s) were added to refs/heads/cassandra-3.0 by this push:
     new 69b653a  Remove mutation data from error log message
69b653a is described below

commit 69b653a01f09874d73bc70e1e7a7670859a4e4a4
Author: Andrés de la Peña <[email protected]>
AuthorDate: Thu Jul 29 11:59:55 2021 +0100

    Remove mutation data from error log message
    
    patch by Andrés de la Peña; reviewed by Brandon Williams for CASSANDRA-16817
    
    Co-authored-by: Aleksandr Sorokoumov <[email protected]>
---
 CHANGES.txt                                             | 4 ++++
 src/java/org/apache/cassandra/service/StorageProxy.java | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index cf775e2..81d707a 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,3 +1,7 @@
+3.0.26:
+ * Remove mutation data from error log message (CASSANDRA-16817)
+
+
 3.0.25:
  * Binary releases no longer bundle the apidocs (javadoc) (CASSANDRA-16557)
  * Migrate dependency handling from maven-ant-tasks to resolver-ant-tasks, 
removing lib/ directory from version control (CASSANDRA-16557)
diff --git a/src/java/org/apache/cassandra/service/StorageProxy.java 
b/src/java/org/apache/cassandra/service/StorageProxy.java
index 91dd991..d165730 100644
--- a/src/java/org/apache/cassandra/service/StorageProxy.java
+++ b/src/java/org/apache/cassandra/service/StorageProxy.java
@@ -877,7 +877,8 @@ public class StorageProxy implements StorageProxyMBean
                         }
                         catch (Exception exc)
                         {
-                            logger.error("Error applying local view update to 
keyspace {}: {}", mutation.getKeyspaceName(), mutation);
+                            logger.error("Error applying local view update: 
Mutation (keyspace {}, tables {}, partition key {})",
+                                         mutation.getKeyspaceName(), 
mutation.getColumnFamilyIds(), mutation.key());
                             throw exc;
                         }
                     else

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to