You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/07/03 09:21:04 UTC

[jira] [Commented] (TRAFODION-17) Check the closed statement object status failed

    [ https://issues.apache.org/jira/browse/TRAFODION-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612931#comment-14612931 ] 

ASF GitHub Bot commented on TRAFODION-17:
-----------------------------------------

GitHub user xwq opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/18

    [TRAFODION-17]Check the closed status of statement

    Check the closed statement object status failed, always get false.
    
    Change-Id: Ifa881efffb9bce01af155d78eea4d123466910bb

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/xwq/incubator-trafodion master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/18.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #18
    
----
commit 31171c349b1368a8bf62920754a47df184e301ee
Author: Weiqing Xu <we...@hp.com>
Date:   2015-07-03T05:39:10Z

    [TRAFODION-17]Check the closed status of statement
    
    Check the closed statement object status failed, always get false.
    
    Change-Id: Ifa881efffb9bce01af155d78eea4d123466910bb

----


> Check the closed statement object status failed
> -----------------------------------------------
>
>                 Key: TRAFODION-17
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-17
>             Project: Apache Trafodion
>          Issue Type: Bug
>            Reporter: Weiqing Xu
>
> This bug has been filed in LaunchPad already. (It will be converted into JIRA). Here is the link :https://bugs.launchpad.net/trafodion/+bug/1465989
> Close a statement object and check its status again when call Statement.isClosed(), failed.
> Test Environment:
> codes' version: commit 1c7265ab7addcd088151904b9139337a29a52d90
> Test Steps:
> Step 1. Create a statement object via a connection object.
> 534 stmt = conn.createStatement();
> 535 assertFalse(stmt.isClosed());
> Step 2. Take a simple SQL action via this statement object.
> 536 sql = "get schemas";
> 537 ret = stmt.execute(sql);
> Step 3. Close this statement object when call Statement.close().
> 540 stmt.close();
> Step 4. Check this statement object status again.
> 541 assertTrue(stmt.isClosed());
> In the above steps, the step 4 will be failed because of the expected value "true" is opposite of the actual value "false" returned by Statement.isClosed() function, the console output as below,
> -bash-4.1$ java -Dprop=t4prop TestBigColumnSize
> Jun 17, 2015 8:37:11 AM TestBigColumnSize <clinit>
> INFO: ============= START ALL TEST CASES =============
> ---
> Exception in thread "main" java.lang.AssertionError
>         at org.junit.Assert.fail(Assert.java:86)
>         at org.junit.Assert.assertTrue(Assert.java:41)
>         at org.junit.Assert.assertTrue(Assert.java:52)
>         at TestBigColumnSize.test_ext_2(TestBigColumnSize.java:541)
>         at TestBigColumnSize.main(TestBigColumnSize.java:26)
> -bash-4.1$
> BTW, T2 and T4 driver will be both impacted due to this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)