You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uniffle.apache.org by zu...@apache.org on 2024/03/08 03:19:53 UTC

(incubator-uniffle) branch zuston-patch-1 created (now df08df421)

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

zuston pushed a change to branch zuston-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


      at df08df421 [#1569] fix(rust): flaky test for test_ticket_manager

This branch includes the following new commits:

     new df08df421 [#1569] fix(rust): flaky test for test_ticket_manager

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-uniffle) 01/01: [#1569] fix(rust): flaky test for test_ticket_manager

Posted by zu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zuston pushed a commit to branch zuston-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git

commit df08df421a691c6ad9114e8fcd76ae479a640f47
Author: Junfan Zhang <zu...@apache.org>
AuthorDate: Fri Mar 8 11:19:48 2024 +0800

    [#1569] fix(rust): flaky test for test_ticket_manager
---
 rust/experimental/server/src/store/mem/ticket.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/experimental/server/src/store/mem/ticket.rs b/rust/experimental/server/src/store/mem/ticket.rs
index eaad3796e..0f69d1535 100644
--- a/rust/experimental/server/src/store/mem/ticket.rs
+++ b/rust/experimental/server/src/store/mem/ticket.rs
@@ -47,7 +47,7 @@ impl Ticket {
     }
 
     pub fn is_timeout(&self, timeout_sec: i64) -> bool {
-        crate::util::current_timestamp_sec() - self.created_time > timeout_sec as u64
+        (crate::util::current_timestamp_sec() - self.created_time) as i64 > timeout_sec
     }
 
     pub fn get_id(&self) -> i64 {