You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2019/12/18 00:49:49 UTC

[impala] branch master updated: IMPALA-9248: fix test_krpc_rpcz on older kernels

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

tarmstrong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 094c23b  IMPALA-9248: fix test_krpc_rpcz on older kernels
094c23b is described below

commit 094c23b2a829d0e4d26539aba1039c6274fdbc5d
Author: Tim Armstrong <ta...@cloudera.com>
AuthorDate: Fri Dec 13 10:50:33 2019 -0800

    IMPALA-9248: fix test_krpc_rpcz on older kernels
    
    Switched the test to check a different counter that
    is present in the 2.6.32 kernel (see
    https://kernel.googlesource.com/pub/scm/linux/kernel/git/vapier/lemote/+/linux-2.6.32-stable/include/linux/tcp.h)
    
    Testing:
    Ran the affected test on a CentOS 6 system.
    
    Change-Id: I40aece9d37622710a4ef3add2b1088bb3ac91563
    Reviewed-on: http://gerrit.cloudera.org:8080/14913
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 tests/webserver/test_web_pages.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tests/webserver/test_web_pages.py b/tests/webserver/test_web_pages.py
index d6f80d3..b264fbe 100644
--- a/tests/webserver/test_web_pages.py
+++ b/tests/webserver/test_web_pages.py
@@ -569,7 +569,11 @@ class TestWebPage(ImpalaTestSuite):
       assert conn["remote_ip"] != ""
       assert conn["num_calls_in_flight"] >= 0
       assert conn["num_calls_in_flight"] == len(conn["calls_in_flight"])
-      assert conn["socket_stats"]["bytes_acked"] > 0, conn
+      # Check rtt, which should be present in 'struct tcp_info' even in old kernels
+      # like 2.6.32.
+      assert conn["socket_stats"]["rtt"] > 0, conn
+      # send_queue_bytes uses TIOCOUTQ, which is also present in 2.6.32 and even older
+      # kernels.
       assert conn["socket_stats"]["send_queue_bytes"] >= 0, conn
 
   @pytest.mark.execute_serially