[jira] [Commented] (CASSANDRA-4451) add thousand separator when display size

2013-03-24 Thread Jonathan Ellis (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13612021#comment-13612021
 ] 

Jonathan Ellis commented on CASSANDRA-4451:
---

Sorry, this isn't worth trying to enforce across all our log messages.

 add thousand separator when display size
 

 Key: CASSANDRA-4451
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4451
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.1.2
Reporter: feng qu
Priority: Minor

 I would like to see size displayed using thousand separator in system log as 
 well as in nodetool compactionstats/cfstats/netstats/tpstats etc. 
 here is an example in system.log
  INFO [OptionalTasks:1] 2012-07-19 10:02:21,137 MeteredFlusher.java (line 62) 
 flushing high-traffic column family CFS(Keyspace='mobilelogks', 
 ColumnFamily='UserNotificationLog') (estimated 1632406241 bytes)
 1,632,406,241 is better to read than 1632406241. 

--
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] [Commented] (CASSANDRA-4451) add thousand separator when display size

2012-07-27 Thread JIRA

[ 
https://issues.apache.org/jira/browse/CASSANDRA-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13423933#comment-13423933
 ] 

Tommy Tynjä commented on CASSANDRA-4451:


This can easily be achieved with java.text.MessageFormat, which also has Locale 
support if desired. I applied this to the MeteredFlusher: 
https://github.com/tommysdk/cassandra/commit/c6ab6e7d0d8a205f89e5c96741449c49130cf078.
 The approach can obviously be applied to other classes as well.

 add thousand separator when display size
 

 Key: CASSANDRA-4451
 URL: https://issues.apache.org/jira/browse/CASSANDRA-4451
 Project: Cassandra
  Issue Type: Improvement
  Components: Core
Affects Versions: 1.1.2
Reporter: feng qu
Priority: Minor

 I would like to see size displayed using thousand separator in system log as 
 well as in nodetool compactionstats/cfstats/netstats/tpstats etc. 
 here is an example in system.log
  INFO [OptionalTasks:1] 2012-07-19 10:02:21,137 MeteredFlusher.java (line 62) 
 flushing high-traffic column family CFS(Keyspace='mobilelogks', 
 ColumnFamily='UserNotificationLog') (estimated 1632406241 bytes)
 1,632,406,241 is better to read than 1632406241. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira