Skip to content

Commit

Permalink
Added the Voldemort Client automated re-bootstrap mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay Soman authored and Lei Gao committed Jun 27, 2012
1 parent 234ac9b commit b2cbdf8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/java/voldemort/client/DefaultStoreClient.java
Expand Up @@ -138,7 +138,7 @@ public Void call() throws Exception {

public void initializeSystemStores() {
for(String storeName: SystemStoreConstants.SystemStoreName.) {
SystemStore<String, Long> sysStore = new SystemStore<String, Long>(storeName,
SystemStore<String, Long> sysStore = new SystemStore<String, Long>(storeName,
config.getBootstrapUrls(),
config.getClientZoneId());
this.sysStoreMap.put(storeName, sysStore);
Expand All @@ -149,13 +149,6 @@ public void initializeSystemStores() {
public void bootStrap() {
logger.info("Bootstrapping metadata for store " + this.storeName);
this.store = storeFactory.getRawStore(storeName, resolver, clientId);

logger.info("Creating System store");
String systemKey = storeName + "-client";
this.sysStore = new SystemStore<String, String>("voldsys$_client_registry",
this.storeFactory);
sysStore.putSysStore(systemKey, "Registered");
logger.info("Getting value - " + sysStore.getSysStore(systemKey));
}

public boolean delete(K key) {
Expand Down

0 comments on commit b2cbdf8

Please sign in to comment.