You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ryan King (JIRA)" <ji...@apache.org> on 2011/03/07 20:16:00 UTC
[jira] Created: (CASSANDRA-2281) keep a count of errors
keep a count of errors
----------------------
Key: CASSANDRA-2281
URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
Project: Cassandra
Issue Type: Improvement
Reporter: Ryan King
Assignee: Ryan King
I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: textmate stdin Vrj9Xa.txt
Fixes a minor bug caught by chrisg.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003715#comment-13003715 ]
Ryan King commented on CASSANDRA-2281:
--------------------------------------
That's a good point. I'm not sure how I feel about conflating logging and statistics gathering.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003616#comment-13003616 ]
Jonathan Ellis commented on CASSANDRA-2281:
-------------------------------------------
Can we subclass Logger/LoggerFactory to do this automatically on logger.error so we don't have to do that manually?
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: textmate stdin Vrj9Xa.txt
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: (was: textmate stdin Vrj9Xa.txt)
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: textmate stdin 5y2H5u.txt
fix some codestyle issues in ErrorReporter
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Ryan King
> Assignee: Ryan King
> Attachments: textmate stdin 5y2H5u.txt, textmate stdin c4Hh5i.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: (was: textmate stdin 5y2H5u.txt)
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Ryan King
> Assignee: Ryan King
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: textmate stdin c4Hh5i.txt
Patch to keep track of errors and expose via JMX. I've probably missed a few places where we need to track things.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Ryan King
> Assignee: Ryan King
> Attachments: textmate stdin c4Hh5i.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: textmate stdin 5y2H5u.txt
forgot to click the license on the last one.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Ryan King
> Assignee: Ryan King
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003626#comment-13003626 ]
Jonathan Ellis commented on CASSANDRA-2281:
-------------------------------------------
You'd need to do some nasty stuff to get line number information (of the caller) that way.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-2281:
--------------------------------------
Component/s: Core
Priority: Minor (was: Major)
Fix Version/s: 0.7.4
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003620#comment-13003620 ]
Ryan King commented on CASSANDRA-2281:
--------------------------------------
I think it might be better to go the opposite direction and have ErrorReporter do the logging.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-2281) keep a count of errors
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012661#comment-13012661 ]
Jonathan Ellis commented on CASSANDRA-2281:
-------------------------------------------
bq. Also you could add a log4j socket appender for error level that would collect the actual errors for operators to be notified of. Another option would be to write a log4j FileAppender that also has a JMX bean.
Well, you can specify multiple appenders, so all you really need is to stack the JMX one in w/ the existing RollingFileAppender.
Looks like JBoss had the same idea: http://community.jboss.org/wiki/JMXNotificationAppender
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.5
>
> Attachments: patch, textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: (was: textmate stdin c4Hh5i.txt)
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Ryan King
> Assignee: Ryan King
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: (was: textmate stdin 5y2H5u.txt)
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "T Jake Luciani (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003997#comment-13003997 ]
T Jake Luciani commented on CASSANDRA-2281:
-------------------------------------------
Since you are specifically counting things with Level.ERROR why not? Also you could add a log4j socket appender for error level that would collect the actual errors for operators to be notified of.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-2281) keep a count of errors
Posted by "Ryan King (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan King updated CASSANDRA-2281:
---------------------------------
Attachment: patch
update to trunk
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.5
>
> Attachments: patch, textmate stdin Vrj9Xa.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CASSANDRA-2281) keep a count of errors
Posted by "T Jake Luciani (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003998#comment-13003998 ]
T Jake Luciani commented on CASSANDRA-2281:
-------------------------------------------
Another option would be to write a log4j FileAppender that also has a JMX bean.
> keep a count of errors
> ----------------------
>
> Key: CASSANDRA-2281
> URL: https://issues.apache.org/jira/browse/CASSANDRA-2281
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Ryan King
> Assignee: Ryan King
> Priority: Minor
> Fix For: 0.7.4
>
> Attachments: textmate stdin 5y2H5u.txt
>
>
> I have patch that keeps a counter (exposed via jmx) of errors. This is quite useful for operators to keep track of the quality of cassandra without having to tail and parse logs across a cluster.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira