[jira] [Updated] (CASSANDRA-5746) HHOM.countPendingHints is a trap for the unwary

2013-07-17 Thread Tyler Hobbs (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tyler Hobbs updated CASSANDRA-5746:
---

Attachment: 0002-Report-created-hint-count-by-endpoint.patch
0001-Remove-HHOM.countPendingHints.patch

0001 removes countPendingHints().

0002 adds a per-endpoint count through the new metrics system. I made 
HHOM.hintFor() non-static, as I couldn't see why the singleton couldn't be 
used.  Let me know if there was some motivation for that.

> HHOM.countPendingHints is a trap for the unwary
> ---
>
> Key: CASSANDRA-5746
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5746
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core, Tools
>Reporter: Jonathan Ellis
>Assignee: Tyler Hobbs
> Fix For: 2.0 beta 2
>
> Attachments: 0001-Remove-HHOM.countPendingHints.patch, 
> 0002-Report-created-hint-count-by-endpoint.patch
>
>
> countPendingHints can OOM the server fairly easily since it does a per-target 
> seq scan without paging.
> More generally, countPendingHints is far too slow to be useful for routine 
> monitoring.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (CASSANDRA-5746) HHOM.countPendingHints is a trap for the unwary

2013-07-16 Thread Jonathan Ellis (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Ellis updated CASSANDRA-5746:
--

Fix Version/s: (was: 2.0.1)
   2.0 beta 2

Sounds good to me.  Let's try to get this into b2 so we don't rip it out of a 
stable release.

> HHOM.countPendingHints is a trap for the unwary
> ---
>
> Key: CASSANDRA-5746
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5746
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core, Tools
>Reporter: Jonathan Ellis
>Assignee: Tyler Hobbs
> Fix For: 2.0 beta 2
>
>
> countPendingHints can OOM the server fairly easily since it does a per-target 
> seq scan without paging.
> More generally, countPendingHints is far too slow to be useful for routine 
> monitoring.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira