mirror of https://github.com/apache/cassandra
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:
parent
774c214336
commit
529aa2ebd8
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue