Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DAF48200C3F for ; Wed, 22 Mar 2017 07:33:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D97AE160B86; Wed, 22 Mar 2017 06:33:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0527A160B83 for ; Wed, 22 Mar 2017 07:33:17 +0100 (CET) Received: (qmail 15630 invoked by uid 500); 22 Mar 2017 06:33:16 -0000 Mailing-List: contact issues-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@jmeter.apache.org Delivered-To: mailing list issues@jmeter.apache.org Received: (qmail 15617 invoked by uid 99); 22 Mar 2017 06:33:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 06:33:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id BB90FC0333 for ; Wed, 22 Mar 2017 06:33:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.901 X-Spam-Level: X-Spam-Status: No, score=0.901 tagged_above=-999 required=6.31 tests=[KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id DD51ve-8qL3S for ; Wed, 22 Mar 2017 06:33:14 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A5F7A5FB40 for ; Wed, 22 Mar 2017 06:33:13 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id ACE17E0436 for ; Wed, 22 Mar 2017 06:33:10 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id BE86560DFA; Wed, 22 Mar 2017 06:33:09 +0000 (UTC) From: bugzilla@apache.org To: issues@jmeter.apache.org Subject: [Bug 60889] JMeter JDBC sample will call SELECT USER() when testing with MySQL JDBC Date: Wed, 22 Mar 2017 06:33:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: JMeter X-Bugzilla-Component: Main X-Bugzilla-Version: 3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: liu_xp2003@sina.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: issues@jmeter.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Wed, 22 Mar 2017 06:33:19 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60889 Liu XP changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #5 from Liu XP --- Hi, This is result. I listed Request Query & Request Quit in Wireshark. The Query "SELECT USER()" could be found in each test case. 1) test while idle to false : No query Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Command: Ping (14) -- test ping instead of validation query. Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Statement: SELECT USER() -- stubborn query. Statement: select Name from zabbixkey; -- test JDBC Request Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) 2) test while idle =3D=3D true + No Validation query =3D> SELECT USER() is = emitted Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Command: Ping (14) -- test ping instead of validation query. Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Statement: SELECT USER() -- stubborn query. Statement: select Name from zabbixkey; -- test JDBC Request Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) 3) test while idle =3D=3D true + Validation query =3D> validation query is = emitted Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Statement: Select 1 -- Yes, this is my validation query. Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) Statement [truncated]: /* mysql-connector-java-5.1.40 ( Revision: 402933ef52cad9aa82624e80acbea46e3a701ce6 ) */SELECT=20 @@session.auto_increment_increment AS auto_increment_increment, @@character_set_client AS character_set_client, @@charac Statement: SET NAMES utf8 Statement: SET character_set_results =3D NULL Statement: SET autocommit=3D1 Statement: SET autocommit=3D0 Statement: SELECT USER() -- stubborn query. Statement: select Name from zabbixkey; -- test JDBC Request Statement: select @@session.tx_read_only Statement: rollback Statement: SET autocommit=3D1 Command: Quit (1) Thanks, LiuXP --=20 You are receiving this mail because: You are the assignee for the bug.=