Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-3361

add logging to StorageProxy for mutations and CL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.0.1
    • None
    • None

    Description

      Through https://github.com/apache/cassandra/commit/dc9992a391f01ef79b74b5d9fc69fb7390184ecf#L20R322 the read command and CL is logged (under DEBUG) and it is very helpful. But I don't think I have seen the same for mutation...

      It'd be nice if we could also log this for the mutation (and others?), please see the attached patch (just done on mutation) . Note also this prints the IMutation which I did wonder if it is a good idea (could the list be so large that it floods the log instead of being useful?)

      sample output:

      DEBUG [RPC-Thread:24] 2011-10-14 12:09:10,949 StorageProxy.java (line 171) Mutations/ConsistencyLevel is [RowMutation(keyspace='testks', key='70', modifications=[ColumnFamily(testindx [testcol:false:1@1318619350892000,])])]/ONE
      

      Attachments

        1. 3361.patch
          0.7 kB
          Jackson Chung

        Activity

          People

            cywjackson Jackson Chung
            cywjackson Jackson Chung
            Jackson Chung
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: