Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGtAo-0004Qe-BK for pgsql-jdbc@arkaria.postgresql.org; Mon, 20 Nov 2017 21:00:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGtAn-0002nG-Tk for pgsql-jdbc@arkaria.postgresql.org; Mon, 20 Nov 2017 21:00:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eGtAn-0002n1-M2 for pgsql-jdbc@lists.postgresql.org; Mon, 20 Nov 2017 21:00:09 +0000 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eGtAg-0001b9-Bi for pgsql-jdbc@postgresql.org; Mon, 20 Nov 2017 21:00:09 +0000 Received: by mail-qt0-x22b.google.com with SMTP id h42so16418306qtk.11 for ; Mon, 20 Nov 2017 13:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:in-reply-to:references:date:mime-version :content-transfer-encoding; bh=+eG6Nul5HGThk1re9fQ92tJEIUrxUo4Msw5lHj83Mzc=; b=InF3zQn8m3vxGQsaxU8j3pW2NmeKL2YPEIFZolw75rk0R3A8ReewmGoHCVeJRPJlb4 +4zclox3e00cXPzTuoUwLAP/EMK0oL3bNATA6909A7XJn9s3lafUU7M1BMKRrpChFMYd 8weRuG2SubfYYHuGj0wDkifzmEJISlDlLmr/XCCgGrtCMT0oR8UlMSk3E+X0hwrww1bc hszNOTktbcTGprb7NNDwpQk+xSHIToe1EU00p97ULfd+qa2mDP6hm4lUnqM4A51xLaBi 0FXOqbVUgrXfJzmj8C4RTjiwyi/6UQCpg1Em/p5rHSzBk8WbRyQKTggCyiDo2jXek30e sLwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:in-reply-to :references:date:mime-version:content-transfer-encoding; bh=+eG6Nul5HGThk1re9fQ92tJEIUrxUo4Msw5lHj83Mzc=; b=XApbkNagGhRzk4OHAGSenK/yCUcW3LPnAJUaceCQmQcmi8DP5NpRsS6H+JgVZtk61v DR4rirpHmS7LvVgyylc/iGy0mBOfvrLjFGUIxwSD2uEKZzSLJ3b3CjgwQAbf+5kqZ7z6 ixHnHnXSc3uCUZRRXQkOE3UMyk0nCFtmJQJNNZGUH9JZPZIcMuUdzZTgED3ULHN/0ck5 cgsEA7yaW2Wlb8JVH4azfV/Wygh0pKzFWvafDIxhssJcy3a5DdHqvht1CzepXrKDc9K8 6fzvMVDh5E2eIw/B9MUOe+bJfPHFRVwVdbrQYl1cAht7xoz/sAtYQGzXzMi7drC1QIJG SfSQ== X-Gm-Message-State: AJaThX56B0tPBdbQWxQ0GnK4PyAD3HLig7LMmFEqCdCq4rUeCDjm6EHH ToMfpvl1B0Rox3VLuounlts= X-Google-Smtp-Source: AGs4zMaoPIyTwk8hUXD4VVvv0zNe7sGLJk/Qa59gxjEQZ4K0oL/h66LI3WmqmV7xOSU5WqwKwPsrdw== X-Received: by 10.237.63.121 with SMTP id q54mr23764926qtf.337.1511211600132; Mon, 20 Nov 2017 13:00:00 -0800 (PST) Received: from roblaptop ([2804:14d:baa0:8491:461e:a1ff:fe19:c7bd]) by smtp.gmail.com with ESMTPSA id e69sm7736120qkj.52.2017.11.20.12.59.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Nov 2017 12:59:59 -0800 (PST) Message-ID: <1511201511.5126.8.camel@gmail.com> Subject: Re: Abort() doesn't abort backends which are in WAITING state From: rob stone To: Sudalai , pgsql-jdbc@postgresql.org In-Reply-To: <1511190321680-0.post@n3.nabble.com> References: <1511190321680-0.post@n3.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 21 Nov 2017 05:11:51 +1100 Mime-Version: 1.0 X-Mailer: Evolution 3.26.2-1 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 2017-11-20 at 08:05 -0700, Sudalai wrote: > Dear geeks, > > When we try to abort backend process which are in "WAITING STATE" via > java.sql.Connection.abort(), socket in application server was closed, > but > backend process doesn't get aborted. > Backends get aborted only after it resources for which it waited. > > Is there anyway we can abort those backend immediately? > > We are using database version : 9.5.1, 9.4.0. Driver version : > 42.1.4 JDBC > 42. > > Thanks in advance. > > - > Sudalai > > > > ----- > sudalai > -- > Sent from: http://www.postgresql-archive.org/PostgreSQL-jdbc-f2168246 > .html > Hi Sudalai, I'm not a "geek" -- just giving my two cents worth. java.sql.Connection.abort(Executor executor) may throw a SQLException or a SecurityException. Are either of these exceptions being thrown? Are you closing the connection prior to trying the abort? HTH, Robert