@@ -1096,14 +1096,14 @@ impl RocksMetaStore {
1096
1096
path : & Path ,
1097
1097
metastore_fs : Arc < dyn MetaStoreFs > ,
1098
1098
config : Arc < dyn ConfigObj > ,
1099
- ) -> Arc < Self > {
1100
- Self :: new_from_store ( RocksStore :: with_listener (
1099
+ ) -> Result < Arc < Self > , CubeError > {
1100
+ Ok ( Self :: new_from_store ( RocksStore :: with_listener (
1101
1101
path,
1102
1102
vec ! [ ] ,
1103
1103
metastore_fs,
1104
1104
config,
1105
1105
Arc :: new ( RocksMetaStoreDetails { } ) ,
1106
- ) )
1106
+ ) ? ) )
1107
1107
}
1108
1108
1109
1109
fn new_from_store ( store : Arc < RocksStore > ) -> Arc < Self > {
@@ -1187,7 +1187,8 @@ impl RocksMetaStore {
1187
1187
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
1188
1188
config. config_obj ( ) ,
1189
1189
details,
1190
- ) ;
1190
+ )
1191
+ . unwrap ( ) ;
1191
1192
1192
1193
( remote_fs, Self :: new_from_store ( store) )
1193
1194
}
@@ -4151,7 +4152,8 @@ mod tests {
4151
4152
store_path. join ( "metastore" ) . as_path ( ) ,
4152
4153
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4153
4154
config. config_obj ( ) ,
4154
- ) ;
4155
+ )
4156
+ . unwrap ( ) ;
4155
4157
4156
4158
let schema_1 = meta_store
4157
4159
. create_schema ( "foo" . to_string ( ) , false )
@@ -4338,7 +4340,8 @@ mod tests {
4338
4340
store_path. join ( "metastore" ) . as_path ( ) ,
4339
4341
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4340
4342
config. config_obj ( ) ,
4341
- ) ;
4343
+ )
4344
+ . unwrap ( ) ;
4342
4345
4343
4346
let schema1 = meta_store
4344
4347
. create_schema ( "foo" . to_string ( ) , false )
@@ -4416,7 +4419,8 @@ mod tests {
4416
4419
store_path. join ( "metastore" ) . as_path ( ) ,
4417
4420
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4418
4421
config. config_obj ( ) ,
4419
- ) ;
4422
+ )
4423
+ . unwrap ( ) ;
4420
4424
4421
4425
meta_store
4422
4426
. create_schema ( "foo" . to_string ( ) , false )
@@ -4464,7 +4468,8 @@ mod tests {
4464
4468
store_path. clone ( ) . join ( "metastore" ) . as_path ( ) ,
4465
4469
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4466
4470
config. config_obj ( ) ,
4467
- ) ;
4471
+ )
4472
+ . unwrap ( ) ;
4468
4473
4469
4474
let schema_1 = meta_store
4470
4475
. create_schema ( "foo" . to_string ( ) , false )
@@ -4571,7 +4576,8 @@ mod tests {
4571
4576
store_path. clone ( ) . join ( "metastore" ) . as_path ( ) ,
4572
4577
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4573
4578
config. config_obj ( ) ,
4574
- ) ;
4579
+ )
4580
+ . unwrap ( ) ;
4575
4581
4576
4582
meta_store
4577
4583
. create_schema ( "foo" . to_string ( ) , false )
@@ -4658,7 +4664,8 @@ mod tests {
4658
4664
store_path. clone ( ) . join ( "metastore" ) . as_path ( ) ,
4659
4665
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
4660
4666
config. config_obj ( ) ,
4661
- ) ;
4667
+ )
4668
+ . unwrap ( ) ;
4662
4669
4663
4670
meta_store
4664
4671
. create_schema ( "foo" . to_string ( ) , false )
@@ -5138,7 +5145,8 @@ mod tests {
5138
5145
store_path. join ( "metastore" ) . as_path ( ) ,
5139
5146
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
5140
5147
config. config_obj ( ) ,
5141
- ) ;
5148
+ )
5149
+ . unwrap ( ) ;
5142
5150
meta_store
5143
5151
. create_schema ( "foo" . to_string ( ) , false )
5144
5152
. await
@@ -5275,7 +5283,8 @@ mod tests {
5275
5283
store_path. join ( "metastore" ) . as_path ( ) ,
5276
5284
BaseRocksStoreFs :: new ( remote_fs. clone ( ) , "metastore" ) ,
5277
5285
config. config_obj ( ) ,
5278
- ) ;
5286
+ )
5287
+ . unwrap ( ) ;
5279
5288
meta_store
5280
5289
. create_schema ( "foo" . to_string ( ) , false )
5281
5290
. await
0 commit comments