This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 7200d038287 branch-3.0: [fix](cooldown) allow cooldown_ttl = 0 when
altering storage policy #50830 (#50854)
7200d038287 is described below
commit 7200d0382876d02fe00450a4186b967a1a3491a8
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed May 14 09:30:09 2025 +0800
branch-3.0: [fix](cooldown) allow cooldown_ttl = 0 when altering storage
policy #50830 (#50854)
Cherry-picked from #50830
Co-authored-by: Luwei <[email protected]>
---
fe/fe-core/src/main/java/org/apache/doris/policy/StoragePolicy.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/policy/StoragePolicy.java
b/fe/fe-core/src/main/java/org/apache/doris/policy/StoragePolicy.java
index ba2e0d5c592..6e21a711e85 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/policy/StoragePolicy.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/policy/StoragePolicy.java
@@ -346,10 +346,10 @@ public class StoragePolicy extends Policy {
}
}
- if (cooldownTtlMs > 0 && cooldownTimestampMs > 0) {
+ if (cooldownTtlMs >= 0 && cooldownTimestampMs >= 0) {
throw new AnalysisException(COOLDOWN_DATETIME + " and " +
COOLDOWN_TTL + " can't be set together.");
}
- if (cooldownTtlMs <= 0 && cooldownTimestampMs <= 0) {
+ if (cooldownTtlMs < 0 && cooldownTimestampMs < 0) {
throw new AnalysisException(COOLDOWN_DATETIME + " or " +
COOLDOWN_TTL + " must be set");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]