Skip to content

Commit

Permalink
rename getRangeKeySample to sampleKeyRange
Browse files Browse the repository at this point in the history
patch by Jan Prach; reviewed by jbellis for CASSANDRA-4452
  • Loading branch information
jbellis committed Jul 25, 2012
1 parent 6f384c5 commit 06bdd3e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.txt
@@ -1,4 +1,6 @@
1.1.3
* (JMX) rename getRangeKeySample to sampleKeyRange to avoid returning
multi-MB results as an attribute (CASSANDRA-4452)
* flush based on data size, not throughput; overwritten columns no
longer artificially inflate liveRatio (CASSANDRA-4399)
* update default commitlog segment size to 32MB and total commitlog
Expand Down
2 changes: 1 addition & 1 deletion src/java/org/apache/cassandra/service/StorageService.java
Expand Up @@ -3080,7 +3080,7 @@ public void loadNewSSTables(String ksName, String cfName)
/**
* #{@inheritDoc}
*/
public List<String> getRangeKeySample()
public List<String> sampleKeyRange() // do not rename to getter - see CASSANDRA-4452 for details
{
List<DecoratedKey> keys = keySamples(ColumnFamilyStore.allUserDefined(), getLocalPrimaryRange());

Expand Down
Expand Up @@ -406,7 +406,7 @@ public interface StorageServiceMBean
*
* @return set of Tokens as Strings
*/
public List<String> getRangeKeySample();
public List<String> sampleKeyRange();

/**
* rebuild the specified indexes
Expand Down
2 changes: 1 addition & 1 deletion src/java/org/apache/cassandra/tools/NodeCmd.java
Expand Up @@ -922,7 +922,7 @@ private void printDescribeRing(String keyspaceName, PrintStream out)
private void printRangeKeySample(PrintStream outs)
{
outs.println("RangeKeySample: ");
List<String> tokenStrings = this.probe.getRangeKeySample();
List<String> tokenStrings = this.probe.sampleKeyRange();
for (String tokenString : tokenStrings)
{
outs.println("\t" + tokenString);
Expand Down
4 changes: 2 additions & 2 deletions src/java/org/apache/cassandra/tools/NodeProbe.java
Expand Up @@ -690,9 +690,9 @@ public void rebuild(String sourceDc)
ssProxy.rebuild(sourceDc);
}

public List<String> getRangeKeySample()
public List<String> sampleKeyRange()
{
return ssProxy.getRangeKeySample();
return ssProxy.sampleKeyRange();
}

public void resetLocalSchema() throws IOException
Expand Down

0 comments on commit 06bdd3e

Please sign in to comment.