-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add persistent ephemeral node support to metadata store
- Loading branch information
Showing
45 changed files
with
638 additions
and
172 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
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
8 changes: 6 additions & 2 deletions
8
kaldb/src/main/java/com/slack/kaldb/metadata/dataset/DatasetMetadataStore.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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
package com.slack.kaldb.metadata.dataset; | ||
|
||
import com.slack.kaldb.metadata.core.KaldbMetadataStore; | ||
import io.micrometer.core.instrument.MeterRegistry; | ||
import org.apache.curator.x.async.AsyncCuratorFramework; | ||
import org.apache.zookeeper.CreateMode; | ||
|
||
public class DatasetMetadataStore extends KaldbMetadataStore<DatasetMetadata> { | ||
// TODO: The path should be dataset, but leaving it as /service for backwards compatibility. | ||
public static final String DATASET_METADATA_STORE_ZK_PATH = "/service"; | ||
|
||
public DatasetMetadataStore(AsyncCuratorFramework curator, boolean shouldCache) throws Exception { | ||
public DatasetMetadataStore( | ||
AsyncCuratorFramework curator, boolean shouldCache, MeterRegistry meterRegistry) | ||
throws Exception { | ||
super( | ||
curator, | ||
CreateMode.PERSISTENT, | ||
shouldCache, | ||
new DatasetMetadataSerializer().toModelSerializer(), | ||
DATASET_METADATA_STORE_ZK_PATH); | ||
DATASET_METADATA_STORE_ZK_PATH, | ||
meterRegistry); | ||
} | ||
} |
Oops, something went wrong.