You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Simon Helsen (JIRA)" <ji...@apache.org> on 2011/08/12 22:53:34 UTC

[jira] [Created] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
-----------------------------------------------------------

                 Key: JENA-97
                 URL: https://issues.apache.org/jira/browse/JENA-97
             Project: Jena
          Issue Type: Bug
          Components: TDB
         Environment: tx-tdb-0.9.0-20110809.130753-7 
            Reporter: Simon Helsen
            Priority: Critical


Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 

SELECT ?a ?b ...

will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123038#comment-13123038 ] 

Andy Seaborne commented on JENA-97:
-----------------------------------

The right answers seem to be:
-------------------------------------------------------------
| aUri                                         | name       |
=============================================================
| <https://front.side/jazz/people/eomer.nt>    | "eomer"    |
| <https://front.side/jazz/people/eomer.nt>    | "eowyn"    |
| <https://front.side/jazz/people/eomer.nt>    | "theodred" |
| <https://front.side/jazz/people/eowyn.nt>    | "eowyn"    |
| <https://front.side/jazz/people/eowyn.nt>    | "theodred" |
| <https://front.side/jazz/people/theodred.nt> | "theodred" |
-------------------------------------------------------------

which I obtained by manually creating the 9 triple graph of relevant information.

GRAPH ?g stop the pattern matching over different graphs.

I think that two things go wrong:

In old versions, rewriting to quads didn't work on paths.  The fix (a change in ARQ) does not seem to correctly interact with TDB.

Explicit naming works:

  SELECT  *
  FROM <urn:x-arq:UnionGraph>
  WHERE
    { ?aUri rdf:type people:Person .
      ?aUri (foaf:knows)*/foaf:name ?name
    }
or 

SELECT * # ?aUri ?name
WHERE {
     GRAPH <urn:x-arq:UnionGraph> {
     ?aUri a people:Person .
     ?aUri foaf:knows*/foaf:name ?name
  }
} 

Exact details of property paths involving * have changed (some time ago but this year) in line with SPARQL WG decisions.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Helsen updated JENA-97:
-----------------------------

       Priority: Major  (was: Critical)
    Description: 
Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 

SELECT ?a ?b ...

will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

  was:
Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 

SELECT ?a ?b ...

will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

    Environment: tx-tdb-0.9.0-20111006.082548-13-dist  (was: tx-tdb-0.9.0-20110809.130753-7 )
    
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Helsen updated JENA-97:
-----------------------------

    Attachment: quads.txt

Attached a sample quad file which can be loaded and queried with the sample query which binds aUri twice, i.e. the bindings coming back are ?aUri ?name ?aUri
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086558#comment-13086558 ] 

Simon Helsen commented on JENA-97:
----------------------------------

The latest snapshot () still exposes this issue but as long as JENA-91 remains open, this may be a wild goose chase

> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-97.
-----------------------------


> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122359#comment-13122359 ] 

Simon Helsen commented on JENA-97:
----------------------------------

ok, I tried debugging this. It seems that in the 3 test cases I have which repeat one of the bindings, everything seems ok until the projection happens in the BindingProject. So I think the returned BindingNodeId is already wrong

So in my attempt to reproduce outside our test framework, I produced a set of quads and the associated query which should illustrate the problem. Now, I did this using tdbdump and tdbquery respectively, but for some reason, the tdbquery is not returning any results even though the index clearly contains the right quads.

I have attached the quads to this issue and here you have the query which should expose the issue:

PREFIX foaf: <http://xmlns.com/foaf/0.1/> 
PREFIX people: <http://example.org/xmlns/people_aFu6gPBlEeCFPq5DAUl-2A/> 
SELECT ?aUri ?name 
WHERE { 
     ?aUri a people:Person . 
     ?aUri foaf:knows*/foaf:name ?name 
} 

I am executing the tdbquery with the following parameters

--loc=>>mylocation<<
--set tdb:logExec=true 
--set tdb:fileMode=direct
--set tdb:unionDefaultGraph=true
--file tdbquery.txt
--explain

This is the output (which makes no sense to me):

INFO  File mode: direct (forced)
INFO  QUERY
  PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
  PREFIX  people: <http://example.org/xmlns/people_aFu6gPBlEeCFPq5DAUl-2A/>
  
  SELECT  ?aUri ?name
  WHERE
    { ?aUri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> people:Person .
      ?aUri (foaf:knows)*/foaf:name ?name
    }
INFO  ALGEBRA
  (project (?aUri ?name)
    (sequence
      (quadpattern (quad <urn:x-arq:DefaultGraphNode> ?aUri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/xmlns/people_aFu6gPBlEeCFPq5DAUl-2A/Person>))
      (sequence
        (graph <urn:x-arq:DefaultGraphNode>
          (path ?aUri (path* <http://xmlns.com/foaf/0.1/knows>) ??P0))
        (quadpattern (quad <urn:x-arq:DefaultGraphNode> ??P0 <http://xmlns.com/foaf/0.1/name> ?name)))))
INFO  Execute ::   (ANY ?aUri rdf:type <http://example.org/xmlns/people_aFu6gPBlEeCFPq5DAUl-2A/Person>)
---------------
| aUri | name |
===============
---------------

Perhaps someone can try to reproduce this?
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086559#comment-13086559 ] 

Simon Helsen commented on JENA-97:
----------------------------------

forgot to include the snapshot id: tx-tdb-0.9.0-20110817.065027-9

> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123528#comment-13123528 ] 

Andy Seaborne commented on JENA-97:
-----------------------------------

Fix applied in SVN.

Simon - Please confirm the clarification of the original problem statement.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124424#comment-13124424 ] 

Simon Helsen commented on JENA-97:
----------------------------------

Andy, yes, sorry if I was not clear, but indeed, the same variable appears in the iterator of variables more than once. So, do I understand it correctly that your fix addresses the duplicate occurrence of variables in the variable iterator?
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122750#comment-13122750 ] 

Simon Helsen commented on JENA-97:
----------------------------------

I see the problem in both old-style and transactional TDB, but I do see replicated bindings. I have to check if tdbquery removes these duplicates and if that is expected. I can confirm that TDB 0.8.7, there were never any duplicates in the returned bindings.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-97.
-----------------------------

    
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-97.
-------------------------------

    Resolution: Fixed
      Assignee: Andy Seaborne

JENA-91 is now closed (2011-08-31).  

Assuming this is due to that underlying problem, let's close this until we have evidence such as a concrete test case based on the post-JENA-91 build, 

> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123520#comment-13123520 ] 

Andy Seaborne commented on JENA-97:
-----------------------------------

Simon -

I presume you actually mean the same variable appears in the iterator of variables more than once.  The bindings themselves (rows) have no duplicates.  The variable should not be repeated but it is always bound to the same value.The var/value is cached in the immediate TDB level, with it's NodeId, by copy-down from the parent. Only one is accessed by "get" and the variable should only appear once in teh list of variable names.

In the results table above, there are no duplicates (some spellings are very similar).  Execution proceeds by finding 3 choices for ?aUri. These pass to the path.  There are 3 possibilties for ?aUri = <eomer.nt>, 2 for <eomer.nt> and 1 for <theodred.nt>.  TDB agrees with an in-memory execution.

TDB 0.8.7 didn't always correctly execute paths outside the storage default graph so the query, for other reasons, returned no rows.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13124460#comment-13124460 ] 

Andy Seaborne commented on JENA-97:
-----------------------------------

Simon - yes, fixed (with bonus prize: optimization to avoid repeated calculation of the variables in what is an immutable binding).  BindingTDB.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123090#comment-13123090 ] 

Simon Helsen commented on JENA-97:
----------------------------------

ok, so I debugged this as well and I see that the way tdbquery works, it avoids the mulitiple selection, but if you set a breakpoint at line 181 in com.hp.hpl.jena.sparql.resultset.TextOutput and look at 

QuerySolution rBind =...

you'll notice that aUri is in the binding more than once. While I can easily work around this, I want to point out that in TDB 0.8.7, this binding did not occur twice. My worry is that this double occurrence of aUri in the QuerySolution is the symptom of an underlying problem which I don't understand

if you can confirm this is not the case (and I should not assume that bindings of a ResultSet are unique), then I will simply fix my own code and we can close this defect
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Paolo Castagna (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13122581#comment-13122581 ] 

Paolo Castagna commented on JENA-97:
------------------------------------

Hi Simon, I do not think this is a problem specific to TxTDB. It behaves as old TDB. I am also not sure it's a problem.

I tried to run this query instead (with GRAPH ?g):

PREFIX foaf: <http://xmlns.com/foaf/0.1/> 
PREFIX people: <http://example.org/xmlns/people_aFu6gPBlEeCFPq5DAUl-2A/> 

SELECT ?aUri ?name 
WHERE { 
    GRAPH ?g { 
        ?aUri a people:Person . 
        ?aUri foaf:knows*/foaf:name ?name 
    }
}

And I get these results:

-------------------------------------------------------------
| aUri                                         | name       |
=============================================================
| <https://front.side/jazz/people/eomer.nt>    | "eomer"    |
| <https://front.side/jazz/people/eowyn.nt>    | "eowyn"    |
| <https://front.side/jazz/people/theodred.nt> | "theodred" |
-------------------------------------------------------------

                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Simon Helsen (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Helsen reopened JENA-97:
------------------------------


After all the fixes for Jena-91, the only remaining issue is thatin Tx-TDB, a select binding sometimes occurs more than once. I haven no reproducing and runnable test case, but I will try to produce a file with the quads and an accompanying query which illustrates the problem
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-97.
-------------------------------

    Resolution: Fixed

BindingTDB now ensures that it reports variables once only.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Andy Seaborne (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123066#comment-13123066 ] 

Andy Seaborne commented on JENA-97:
-----------------------------------

The reason is rather less interesting.

try 
--set http://jena.hpl.hp.com/TDB#unionDefaultGraph=true

tdb: expansion in command line --set argument wasn't working.
                
> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20111006.082548-13-dist
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>         Attachments: quads.txt
>
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (JENA-97) TDB 0.9.0 snapshot sometimes returns a SELECT binding twice

Posted by "Paolo Castagna (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-97?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085622#comment-13085622 ] 

Paolo Castagna commented on JENA-97:
------------------------------------

This is another example (as JENA-96) of bug reports which I would like to help to fix, but I fail to replicate.
Any help/guidance in replicating this issue is more than welcome. The best thing is a small program we can run and debug.

> TDB 0.9.0 snapshot sometimes returns a SELECT binding twice
> -----------------------------------------------------------
>
>                 Key: JENA-97
>                 URL: https://issues.apache.org/jira/browse/JENA-97
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>         Environment: tx-tdb-0.9.0-20110809.130753-7 
>            Reporter: Simon Helsen
>            Priority: Critical
>
> Very sometimes (rare), it seems that a result set will repeat the first SELECT binding. E.g. 
> SELECT ?a ?b ...
> will bind ?a twice in the result set. It only happens quite rarely, but the same queries behave correctly in TDB 0.8.7 . I suspect they may be caused by the corruptions mentioned in https://issues.apache.org/jira/browse/JENA-91

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira