@@ -33,13 +33,9 @@ public class Configs {
33
33
34
34
private Configs () {}
35
35
36
- public static final String KV_STORE_KEY = "kv" ;
37
36
public static final String RELATIONAL_ENTITY_STORE = "relational" ;
38
37
public static final String ENTITY_STORE_KEY = "gravitino.entity.store" ;
39
38
40
- public static final String DEFAULT_ENTITY_KV_STORE = "RocksDBKvBackend" ;
41
- public static final String ENTITY_KV_STORE_KEY = "gravitino.entity.store.kv" ;
42
-
43
39
public static final String DEFAULT_ENTITY_RELATIONAL_STORE = "JDBCBackend" ;
44
40
public static final String ENTITY_RELATIONAL_STORE_KEY = "gravitino.entity.store.relational" ;
45
41
@@ -55,18 +51,13 @@ private Configs() {}
55
51
public static final String ENTITY_RELATIONAL_JDBC_BACKEND_STORAGE_PATH_KEY =
56
52
"gravitino.entity.store.relational.storagePath" ;
57
53
58
- public static final String ENTITY_KV_ROCKSDB_BACKEND_PATH_KEY =
59
- "gravitino.entity.store.kv.rocksdbPath" ;
60
-
61
- public static final Long DEFAULT_KV_DELETE_AFTER_TIME = 604800000L ; // 7 days
62
- public static final String KV_DELETE_AFTER_TIME_KEY =
63
- "gravitino.entity.store.kv.deleteAfterTimeMs" ;
54
+ public static final Long DEFAULT_DELETE_AFTER_TIME = 604800000L ; // 7 days
64
55
65
56
// Config for data keep time after soft deletion, in milliseconds.
66
57
public static final String STORE_DELETE_AFTER_TIME_KEY =
67
58
"gravitino.entity.store.deleteAfterTimeMs" ;
68
59
// using the fallback default value
69
- public static final Long DEFAULT_STORE_DELETE_AFTER_TIME = DEFAULT_KV_DELETE_AFTER_TIME ;
60
+ public static final Long DEFAULT_STORE_DELETE_AFTER_TIME = DEFAULT_DELETE_AFTER_TIME ;
70
61
// The maximum allowed keep time for data deletion, in milliseconds. Equivalent to 30 days.
71
62
public static final Long MAX_DELETE_TIME_ALLOW = 1000 * 60 * 60 * 24 * 30L ;
72
63
// The minimum allowed keep time for data deletion, in milliseconds. Equivalent to 10 minutes.
@@ -82,10 +73,6 @@ private Configs() {}
82
73
// The minimum allowed count of versions to be retained
83
74
public static final Long MIN_VERSION_RETENTION_COUNT = 1L ;
84
75
85
- // Default path for RocksDB backend is "${GRAVITINO_HOME}/data/rocksdb"
86
- public static final String DEFAULT_KV_ROCKSDB_BACKEND_PATH =
87
- String .join (File .separator , System .getenv ("GRAVITINO_HOME" ), "data" , "rocksdb" );
88
-
89
76
public static final String DEFAULT_RELATIONAL_JDBC_BACKEND_PATH =
90
77
String .join (File .separator , System .getenv ("GRAVITINO_HOME" ), "data" , "jdbc" );
91
78
@@ -111,13 +98,6 @@ private Configs() {}
111
98
.stringConf ()
112
99
.createWithDefault (RELATIONAL_ENTITY_STORE );
113
100
114
- public static final ConfigEntry <String > ENTITY_KV_STORE =
115
- new ConfigBuilder (ENTITY_KV_STORE_KEY )
116
- .doc ("Detailed implementation of Kv storage" )
117
- .version (ConfigConstants .VERSION_0_1_0 )
118
- .stringConf ()
119
- .createWithDefault (DEFAULT_ENTITY_KV_STORE );
120
-
121
101
public static final ConfigEntry <String > ENTITY_RELATIONAL_STORE =
122
102
new ConfigBuilder (ENTITY_RELATIONAL_STORE_KEY )
123
103
.doc ("Detailed implementation of relational storage" )
@@ -168,24 +148,6 @@ private Configs() {}
168
148
.stringConf ()
169
149
.createWithDefault (DEFAULT_RELATIONAL_JDBC_BACKEND_PATH );
170
150
171
- public static final ConfigEntry <String > ENTITY_KV_ROCKSDB_BACKEND_PATH =
172
- new ConfigBuilder (ENTITY_KV_ROCKSDB_BACKEND_PATH_KEY )
173
- .doc (
174
- "The storage path for RocksDB storage implementation. It supports both absolute and"
175
- + " relative path, if the value is a relative path, the final path is "
176
- + "`${GRAVITINO_HOME}/${PATH_YOU_HAVA_SET}`, default value is "
177
- + "`${GRAVITINO_HOME}/data/rocksdb`" )
178
- .version (ConfigConstants .VERSION_0_1_0 )
179
- .stringConf ()
180
- .createWithDefault (DEFAULT_KV_ROCKSDB_BACKEND_PATH );
181
-
182
- public static final ConfigEntry <String > ENTITY_SERDE =
183
- new ConfigBuilder ("gravitino.entity.serde" )
184
- .doc ("The entity SerDe to use" )
185
- .version (ConfigConstants .VERSION_0_1_0 )
186
- .stringConf ()
187
- .createWithDefault ("proto" );
188
-
189
151
public static final ConfigEntry <Long > CATALOG_CACHE_EVICTION_INTERVAL_MS =
190
152
new ConfigBuilder ("gravitino.catalog.cache.evictionIntervalMs" )
191
153
.doc ("The interval in milliseconds to evict the catalog cache" )
@@ -232,24 +194,6 @@ private Configs() {}
232
194
.longConf ()
233
195
.createWithDefault (2000L );
234
196
235
- public static final ConfigEntry <Long > KV_DELETE_AFTER_TIME =
236
- new ConfigBuilder (KV_DELETE_AFTER_TIME_KEY )
237
- .doc (
238
- String .format (
239
- "The maximum time in milliseconds that the deleted data and old version data is kept, "
240
- + "max delete time allow is %s ms(30 days), "
241
- + "min delete time allow is %s ms(10 minutes)" ,
242
- MAX_DELETE_TIME_ALLOW , MIN_DELETE_TIME_ALLOW ))
243
- .version (ConfigConstants .VERSION_0_5_0 )
244
- .deprecated ()
245
- .longConf ()
246
- .checkValue (
247
- v -> v >= MIN_DELETE_TIME_ALLOW && v <= MAX_DELETE_TIME_ALLOW ,
248
- String .format (
249
- "The value of %s is out of range, which must be between %s and %s" ,
250
- KV_DELETE_AFTER_TIME_KEY , MIN_DELETE_TIME_ALLOW , MAX_DELETE_TIME_ALLOW ))
251
- .createWithDefault (DEFAULT_KV_DELETE_AFTER_TIME );
252
-
253
197
public static final ConfigEntry <Long > STORE_DELETE_AFTER_TIME =
254
198
new ConfigBuilder (STORE_DELETE_AFTER_TIME_KEY )
255
199
.doc (
@@ -259,7 +203,6 @@ private Configs() {}
259
203
+ "min delete time allow is %s ms(10 minutes)" ,
260
204
MAX_DELETE_TIME_ALLOW , MIN_DELETE_TIME_ALLOW ))
261
205
.version (ConfigConstants .VERSION_0_5_0 )
262
- .alternatives (Lists .newArrayList (KV_DELETE_AFTER_TIME_KEY ))
263
206
.longConf ()
264
207
.checkValue (
265
208
v -> v >= MIN_DELETE_TIME_ALLOW && v <= MAX_DELETE_TIME_ALLOW ,
0 commit comments