-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented additional provisions in the id allocation logic to allow…
… the user to configure Titan in such a way that id allocation conflicts are much less likely when ingesting through lots of machines. Fixes #382
- Loading branch information
1 parent
c136530
commit 0c4459a
Showing
14 changed files
with
520 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...elius/titan/diskstorage/cassandra/embedded/InternalCassandraEmbeddedIDAllocationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.thinkaurelius.titan.diskstorage.cassandra.embedded; | ||
|
||
import com.thinkaurelius.titan.CassandraStorageSetup; | ||
import com.thinkaurelius.titan.diskstorage.IDAllocationTest; | ||
import com.thinkaurelius.titan.diskstorage.LockKeyColumnValueStoreTest; | ||
import com.thinkaurelius.titan.diskstorage.StorageException; | ||
import com.thinkaurelius.titan.diskstorage.keycolumnvalue.KeyColumnValueStoreManager; | ||
import org.apache.commons.configuration.Configuration; | ||
|
||
public class InternalCassandraEmbeddedIDAllocationTest extends IDAllocationTest { | ||
|
||
public InternalCassandraEmbeddedIDAllocationTest(Configuration baseConfig) { | ||
super(baseConfig); | ||
} | ||
|
||
@Override | ||
public KeyColumnValueStoreManager openStorageManager(int idx) throws StorageException { | ||
Configuration sc = CassandraStorageSetup.getEmbeddedCassandraStorageConfiguration(getClass().getSimpleName()); | ||
return new CassandraEmbeddedStoreManager(sc); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.