You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ca...@apache.org on 2021/12/30 03:17:01 UTC

[incubator-doris] branch master updated: [fix](cache) Int overflow causes the wrong latest table to be obtained (#7533)

This is an automated email from the ASF dual-hosted git repository.

caiconghui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 8da2e8b  [fix](cache) Int overflow causes the wrong latest table to be obtained (#7533)
8da2e8b is described below

commit 8da2e8b91b35470cae9e0da22cdb8afd9d69272c
Author: Zeno Yang <co...@qq.com>
AuthorDate: Thu Dec 30 11:16:50 2021 +0800

    [fix](cache) Int overflow causes the wrong latest table to be obtained (#7533)
---
 fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java b/fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java
index b490d90..2417469 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java
@@ -150,7 +150,7 @@ public class CacheAnalyzer {
 
         @Override
         public int compareTo(CacheTable table) {
-            return (int) (table.latestTime - this.latestTime);
+            return Long.compare(table.latestTime, this.latestTime);
         }
 
         public void Debug() {

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org