LegacySSTableTest should ignore invalid directories. patch by stuhood, reviewed by gdusbabek

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@979689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Dusbabek 2010-07-27 13:24:20 +00:00
parent 774c214336
commit 529aa2ebd8
2 changed files with 3 additions and 2 deletions

View File

@ -128,7 +128,7 @@ public class Descriptor
* @return True if the given version string is not empty, and
* contains all lowercase letters, as defined by java.lang.Character.
*/
private static boolean versionValidate(String ver)
static boolean versionValidate(String ver)
{
if (ver.length() < 1) return false;
for (char ch : ver.toCharArray())

View File

@ -92,7 +92,8 @@ public class LegacySSTableTest extends CleanupHelper
public void testVersions() throws IOException
{
for (File version : LEGACY_SSTABLE_ROOT.listFiles())
testVersion(version.getName());
if (Descriptor.versionValidate(version.getName()))
testVersion(version.getName());
}
public void testVersion(String version)