Netflix / Priam

Co-Process for backup/recovery, Token Management, and Centralized Configuration management for Cassandra.
Apache License 2.0
1.04k stars 294 forks source link

Build fails #334

Closed mcacker closed 10 years ago

mcacker commented 10 years ago

I'm trying to deploy Priam and am performing a build as I've modified PriamGuiceModule as directed in the wiki to allow IAM roles. I'm seeing the following errors:

:priam:licenseTest UP-TO-DATE :priam:compileTestJava Note: C:\GitHub\Priam\priam\src\test\java\com\netflix\priam\backup\Fak... Note: Recompile with -Xlint:unchecked for details. :priam:processTestResources :priam:testClasses :priam:test

com.netflix.priam.backup.TestBackup > testSnapshotBackup FAILED java.util.regex.PatternSyntaxException at TestBackup.java:64

com.netflix.priam.backup.TestBackup > testIncrementalBackup FAILED junit.framework.AssertionFailedError at TestBackup.java:87

com.netflix.priam.backup.TestBackupFile > testBackupFileCreation FAILE java.util.regex.PatternSyntaxException at TestBackupFile.java:66

com.netflix.priam.backup.TestBackupFile > testIncBackupFileCreation FA java.util.regex.PatternSyntaxException at TestBackupFile.java:83

com.netflix.priam.backup.TestBackupFile > testMetaFileCreation FAILED java.util.regex.PatternSyntaxException at TestBackupFile.java:103

com.netflix.priam.backup.TestFileIterator > testIteratorEmptySet FAILE java.util.regex.PatternSyntaxException at TestFileIterator.java:14

com.netflix.priam.backup.TestFileIterator > testIterator FAILED java.util.regex.PatternSyntaxException at TestFileIterator.java:16

com.netflix.priam.backup.TestFileIterator > testIteratorTruncated FAIL java.util.regex.PatternSyntaxException at TestFileIterator.java:18

com.netflix.priam.backup.TestFileIterator > testIteratorTruncatedOOR F java.util.regex.PatternSyntaxException at TestFileIterator.java:20

com.netflix.priam.backup.TestFileIterator > testRestorePathIteration F java.util.regex.PatternSyntaxException at TestFileIterator.java:23

com.netflix.priam.backup.TestRestore > testRestore FAILED java.util.regex.PatternSyntaxException at TestRestore.java:61

com.netflix.priam.backup.TestRestore > testRestoreLatest FAILED java.util.regex.PatternSyntaxException at TestRestore.java:61

com.netflix.priam.backup.TestRestore > testNoSnapshots FAILED java.io.IOException at TestRestore.java:118 Caused by: java.io.IOException at TestRestore.java:118

com.netflix.priam.backup.TestRestore > testRestoreFromDiffCluster FAIL java.util.regex.PatternSyntaxException at TestRestore.java:61

com.netflix.priam.backup.TestS3FileSystem > testFileUpload FAILED java.util.regex.PatternSyntaxException at TestS3FileSystem.java:80

etc...

Debugging in my IDE I see that it is getting the following error:

ERROR 08:44:40,831 Exception --> java.util.regex.PatternSyntaxException: Unexpected internal error near index 1

which is due to trying to split a path "Keyspace1/Standard1/snapshots/201405090833/Keyspace1-Standard1-ia-5-Data.db", using PATH_SEP "\" (from File.separatorChar;) in the class and method

class AbstractBackupPath
    public void parseLocal(File file, BackupFileType type) throws ParseException
    {
        // TODO cleanup.
        this.backupFile = file;

        String rpath = new File(config.getDataFileLocation()).toURI().relativize(file.toURI()).getPath();
        String[] elements = rpath.split("" + PATH_SEP);

I downloaded master and am performing the build on windows.

timiblossom commented 10 years ago

Can you run 'gradlew test --debug' and give us the log here?

Thanks.

mcacker commented 10 years ago

renamed as a .png as text output was too large to paste in here

test

timiblossom commented 10 years ago

Can't see it. However, I realize you already deployed Priam based on a latter question from you. I am closing this now. Thanks.