12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- use dashmap:: DashMap ;
15
+ use dashmap:: { DashMap , DashSet } ;
16
16
use datafusion:: arrow:: datatypes:: Schema ;
17
17
use dotenv_config:: EnvConfig ;
18
18
use dotenvy:: dotenv;
@@ -32,6 +32,7 @@ use crate::meta::user::User;
32
32
use crate :: service:: enrichment:: StreamTable ;
33
33
34
34
pub type RwHashMap < K , V > = DashMap < K , V , ahash:: RandomState > ;
35
+ pub type RwHashSet < K > = DashSet < K , ahash:: RandomState > ;
35
36
36
37
pub static VERSION : & str = env ! ( "GIT_VERSION" ) ;
37
38
pub static COMMIT_HASH : & str = env ! ( "GIT_COMMIT_HASH" ) ;
@@ -184,6 +185,8 @@ pub struct Common {
184
185
pub column_timestamp : String ,
185
186
#[ env_config( name = "ZO_WIDENING_SCHEMA_EVOLUTION" , default = false ) ]
186
187
pub widening_schema_evolution : bool ,
188
+ #[ env_config( name = "ZO_SKIP_SCHEMA_VALIDATION" , default = false ) ]
189
+ pub skip_schema_validation : bool ,
187
190
#[ env_config( name = "ZO_FEATURE_PER_THREAD_LOCK" , default = false ) ]
188
191
pub feature_per_thread_lock : bool ,
189
192
#[ env_config( name = "ZO_FEATURE_FULLTEXT_ON_ALL_FIELDS" , default = false ) ]
@@ -216,8 +219,6 @@ pub struct Common {
216
219
pub prometheus_enabled : bool ,
217
220
#[ env_config( name = "ZO_PRINT_KEY_CONFIG" , default = false ) ]
218
221
pub print_key_config : bool ,
219
- #[ env_config( name = "ZO_SKIP_SCHEMA_VALIDATION" , default = false ) ]
220
- pub skip_schema_validation : bool ,
221
222
}
222
223
223
224
#[ derive( EnvConfig ) ]
@@ -265,6 +266,8 @@ pub struct Compact {
265
266
pub max_file_size : u64 ,
266
267
#[ env_config( name = "ZO_COMPACT_DATA_RETENTION_DAYS" , default = 3650 ) ] // in days
267
268
pub data_retention_days : i64 ,
269
+ #[ env_config( name = "ZO_COMPACT_BLOCKED_ORGS" , default = "" ) ] // use comma to split
270
+ pub blocked_orgs : String ,
268
271
}
269
272
270
273
#[ derive( EnvConfig ) ]
@@ -314,7 +317,7 @@ pub struct Etcd {
314
317
pub connect_timeout : u64 ,
315
318
#[ env_config( name = "ZO_ETCD_COMMAND_TIMEOUT" , default = 5 ) ]
316
319
pub command_timeout : u64 ,
317
- #[ env_config( name = "ZO_ETCD_LOCK_WAIT_TIMEOUT" , default = 600 ) ]
320
+ #[ env_config( name = "ZO_ETCD_LOCK_WAIT_TIMEOUT" , default = 3600 ) ]
318
321
pub lock_wait_timeout : u64 ,
319
322
#[ env_config( name = "ZO_ETCD_USER" , default = "" ) ]
320
323
pub user : String ,
@@ -360,6 +363,8 @@ pub struct S3 {
360
363
pub bucket_prefix : String ,
361
364
#[ env_config( name = "ZO_S3_CONNECT_TIMEOUT" , default = 10 ) ] // seconds
362
365
pub connect_timeout : u64 ,
366
+ #[ env_config( name = "ZO_S3_REQUEST_TIMEOUT" , default = 3600 ) ] // seconds
367
+ pub request_timeout : u64 ,
363
368
#[ env_config( name = "ZO_S3_FEATURE_FORCE_PATH_STYLE" , default = false ) ]
364
369
pub feature_force_path_style : bool ,
365
370
}
0 commit comments