db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4387) Infinite loop in PredicateList.joinClauseTransitiveClosure()
Date Fri, 25 Sep 2009 12:38:16 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759513#action_12759513
] 

Knut Anders Hatlen commented on DERBY-4387:
-------------------------------------------

Thread dump when the statement has entered the infinite loop:

"main" prio=3 tid=0x0806f400 nid=0x2 runnable [0xfe28e000]
   java.lang.Thread.State: RUNNABLE
        at org.apache.derby.impl.sql.compile.PredicateList.joinClauseTransitiveClosure(PredicateList.java:2071)
        at org.apache.derby.impl.sql.compile.SelectNode.performTransitiveClosure(SelectNode.java:1109)
        at org.apache.derby.impl.sql.compile.SelectNode.preprocess(SelectNode.java:954)
        at org.apache.derby.impl.sql.compile.DMLStatementNode.optimizeStatement(DMLStatementNode.java:318)
        at org.apache.derby.impl.sql.compile.CursorNode.optimizeStatement(CursorNode.java:573)
        at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:373)
        at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:88)
        at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:824)
        at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:606)
        - locked <0xbad3dc50> (a org.apache.derby.impl.jdbc.EmbedConnection40)
        at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:555)
        at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:329)
        at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:521)
        at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:366)
        at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:261)
        at org.apache.derby.impl.tools.ij.Main.go(Main.java:229)
        at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:184)
        at org.apache.derby.impl.tools.ij.Main.main(Main.java:75)
        at org.apache.derby.tools.ij.main(ij.java:59)
        at org.apache.derby.iapi.tools.run.main(run.java:53)

> Infinite loop in PredicateList.joinClauseTransitiveClosure()
> ------------------------------------------------------------
>
>                 Key: DERBY-4387
>                 URL: https://issues.apache.org/jira/browse/DERBY-4387
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.0.2.1, 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.3.0, 10.6.0.0
>            Reporter: Knut Anders Hatlen
>
> This sequence of statements triggers an infinite loop in PredicateList.joinClauseTransitiveClosure()
and never completes:
> create table c (a int, b int, c int);
> create table cc (aa int);
> select * from cc t1, c t2, cc t3 where t3.aa = t2.a and t3.aa = t2.b and t3.aa = t2.c;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message