You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The use of this feature requires a Databend Enterprise Edition license. No license key found for tenant: {}. To unlock enterprise features, please contact Databend to obtain a license. Learn more at {}",
111
-
self.tenant,LICENSE_URL
115
+
"[LicenseManager] Feature '{}' requires Databend Enterprise Edition license. No license key found for tenant: {}. Learn more at {}",
116
+
feature,self.tenant,LICENSE_URL
112
117
));
113
118
}
114
119
@@ -134,8 +139,10 @@ impl LicenseManager for RealLicenseManager {
134
139
// Previously cached valid license might be expired
135
140
let claim = v.value();
136
141
ifSelf::verify_license_expired(claim)? {
137
-
warn!("Cached License expired");
138
-
Err(ErrorCode::LicenseKeyExpired("license key is expired."))
142
+
warn!("[LicenseManager] Cached license expired");
143
+
Err(ErrorCode::LicenseKeyExpired(
144
+
"[LicenseManager] License key is expired.",
145
+
))
139
146
}else{
140
147
Ok((*claim).clone())
141
148
}
@@ -154,7 +161,7 @@ impl LicenseManager for RealLicenseManager {
154
161
ifletSome(v) = self.cache.get(&license_key){
155
162
ifSelf::verify_license_expired(v.value())? {
156
163
returnErr(ErrorCode::LicenseKeyExpired(format!(
157
-
"license key expired in {:?}",
164
+
"[LicenseManager] License key expired at {:?}",
158
165
v.value().expires_at,
159
166
)));
160
167
}
@@ -163,12 +170,12 @@ impl LicenseManager for RealLicenseManager {
163
170
164
171
let license = self.parse_license(&license_key).map_err_to_code(
165
172
ErrorCode::LicenseKeyInvalid,
166
-
|| format!("use of storage requires an enterprise license. current license is invalid for {}",self.tenant),
173
+
|| format!("[LicenseManager] Storage use requires enterprise license. Current license invalid for tenant: {}",self.tenant),
"The use of this feature requires a Databend Enterprise Edition license. License key has expired for tenant: {}. To unlock enterprise features, please contact Databend to obtain a license. Learn more at https://docs.databend.com/guides/products/dee/",
229
-
self.tenant
235
+
"[LicenseManager] Feature '{}' requires Databend Enterprise Edition license. License key expired for tenant: {}. Learn more at {}",
let enable_disk_cache = matchLicenseManagerSwitch::instance()
107
+
.check_license(ctx.get_license_key())
108
+
{
109
+
Ok(_) => true,
110
+
Err(e) => {
111
+
log::error!(
112
+
"[Interpreter] CRITICAL ALERT: License validation FAILED - enterprise features DISABLED, System may operate in DEGRADED MODE with LIMITED CAPABILITIES and REDUCED PERFORMANCE. Please contact us at https://www.databend.com/contact-us/ or email [email protected] to restore full functionality: {}",
0 commit comments