Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1368

Blueprints TestPathConstraints Failing After Merge with Master

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: BLAZEGRAPH_RELEASE_1_5_3
    • Component/s: None
    • Labels:
      None

      Description

      michaelschmidt I'm working to bring these tests into master, but when I merged up into the branch one of the Blueprints TestPathContraints tests is failing. Do you mind taking a look? The output with debug is below.

      com.bigdata.blueprints.TestPathConstraints.testPathFilters.

      https://ci.blazegraph.com/job/bigdata-blueprints/lastBuild/com.blazegraph$bigdata-blueprints/testReport/com.bigdata.blueprints/TestPathConstraints/testPathFilters/

      INFO : 339      main com.bigdata.blueprints.BigdataGraph.addVertex(BigdataGraph.java:661): (0)
      INFO : 368      main com.bigdata.blueprints.BigdataGraph.addVertex(BigdataGraph.java:661): (1)
      INFO : 369      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (01, id: 0, props: , id: 1, props: , foo)
      INFO : 370      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (test:foo, id: 0, props: , id: 1, props: , null)
      INFO : 370      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (bigdata:type, id: 01, props: , id: test:foo, props: , null)
      INFO : 370      main com.bigdata.blueprints.BigdataEdge.setProperty(BigdataEdge.java:113): (some:prop, 1)
      INFO : 390      main com.bigdata.blueprints.BigdataGraph.addVertex(BigdataGraph.java:661): (2)
      INFO : 390      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (12, id: 1, props: , id: 2, props: , foo)
      INFO : 390      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (test:foo, id: 1, props: , id: 2, props: , null)
      INFO : 391      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (bigdata:type, id: 12, props: , id: test:foo, props: , null)
      INFO : 391      main com.bigdata.blueprints.BigdataEdge.setProperty(BigdataEdge.java:113): (some:prop, 2)
      INFO : 403      main com.bigdata.blueprints.BigdataGraph.addVertex(BigdataGraph.java:661): (3)
      INFO : 403      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (23, id: 2, props: , id: 3, props: , foo)
      INFO : 403      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (test:foo, id: 2, props: , id: 3, props: , null)
      INFO : 403      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (bigdata:type, id: 23, props: , id: test:foo, props: , null)
      INFO : 403      main com.bigdata.blueprints.BigdataEdge.setProperty(BigdataEdge.java:113): (some:prop, 3)
      INFO : 405      main com.bigdata.blueprints.BigdataGraph.addVertex(BigdataGraph.java:661): (4)
      INFO : 406      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (34, id: 3, props: , id: 4, props: , foo)
      INFO : 406      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (test:foo, id: 3, props: , id: 4, props: , null)
      INFO : 406      main com.bigdata.blueprints.BigdataGraph.addEdge(BigdataGraph.java:595): (bigdata:type, id: 34, props: , id: test:foo, props: , null)
      INFO : 406      main com.bigdata.blueprints.BigdataEdge.setProperty(BigdataEdge.java:113): (some:prop, 4)
      DEBUG: 447      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:163): 
      #1	<id:0, bigdata:type, bigdata:Vertex> : Explicit (TermId(5U),TermId(3U),TermId(4U),null)
      #2	<id:0, id:01, id:1> : Explicit (TermId(5U),TermId(6U),TermId(7U),null)
      #3	<id:0, test:foo, id:1> : Explicit (TermId(5U),TermId(8U),TermId(7U),null)
      #4	<id:01, bigdata:label, "foo"> : Explicit (TermId(6U),TermId(2U),TermId(9L),null)
      #5	<id:01, bigdata:type, bigdata:Edge> : Explicit (TermId(6U),TermId(3U),TermId(1U),null)
      #6	<id:01, bigdata:type, test:foo> : Explicit (TermId(6U),TermId(3U),TermId(8U),null)
      #7	<id:01, some:prop, "1"^^<http://www.w3.org/2001/XMLSchema#int>> : Explicit (TermId(6U),TermId(12U),XSDInt(1),null)
      #8	<id:1, bigdata:type, bigdata:Vertex> : Explicit (TermId(7U),TermId(3U),TermId(4U),null)
      #9	<id:1, test:foo, id:2> : Explicit (TermId(7U),TermId(8U),TermId(11U),null)
      #10	<id:1, id:12, id:2> : Explicit (TermId(7U),TermId(10U),TermId(11U),null)
      #11	<id:12, bigdata:label, "foo"> : Explicit (TermId(10U),TermId(2U),TermId(9L),null)
      #12	<id:12, bigdata:type, bigdata:Edge> : Explicit (TermId(10U),TermId(3U),TermId(1U),null)
      #13	<id:12, bigdata:type, test:foo> : Explicit (TermId(10U),TermId(3U),TermId(8U),null)
      #14	<id:12, some:prop, "2"^^<http://www.w3.org/2001/XMLSchema#int>> : Explicit (TermId(10U),TermId(12U),XSDInt(2),null)
      #15	<id:2, bigdata:type, bigdata:Vertex> : Explicit (TermId(11U),TermId(3U),TermId(4U),null)
      #16	<id:2, test:foo, id:3> : Explicit (TermId(11U),TermId(8U),TermId(14U),null)
      #17	<id:2, id:23, id:3> : Explicit (TermId(11U),TermId(13U),TermId(14U),null)
      #18	<id:23, bigdata:label, "foo"> : Explicit (TermId(13U),TermId(2U),TermId(9L),null)
      #19	<id:23, bigdata:type, bigdata:Edge> : Explicit (TermId(13U),TermId(3U),TermId(1U),null)
      #20	<id:23, bigdata:type, test:foo> : Explicit (TermId(13U),TermId(3U),TermId(8U),null)
      #21	<id:23, some:prop, "3"^^<http://www.w3.org/2001/XMLSchema#int>> : Explicit (TermId(13U),TermId(12U),XSDInt(3),null)
      #22	<id:3, bigdata:type, bigdata:Vertex> : Explicit (TermId(14U),TermId(3U),TermId(4U),null)
      #23	<id:3, test:foo, id:4> : Explicit (TermId(14U),TermId(8U),TermId(16U),null)
      #24	<id:3, id:34, id:4> : Explicit (TermId(14U),TermId(15U),TermId(16U),null)
      #25	<id:34, bigdata:label, "foo"> : Explicit (TermId(15U),TermId(2U),TermId(9L),null)
      #26	<id:34, bigdata:type, bigdata:Edge> : Explicit (TermId(15U),TermId(3U),TermId(1U),null)
      #27	<id:34, bigdata:type, test:foo> : Explicit (TermId(15U),TermId(3U),TermId(8U),null)
      #28	<id:34, some:prop, "4"^^<http://www.w3.org/2001/XMLSchema#int>> : Explicit (TermId(15U),TermId(12U),XSDInt(4),null)
      #29	<id:4, bigdata:type, bigdata:Vertex> : Explicit (TermId(16U),TermId(3U),TermId(4U),null)
      dumpStore: #statements=29, #explicit=29, #inferred=0, #axioms=0
      DEBUG: 786      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:187): Bindings [vals={to=0}]
      DEBUG: 787      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:187): Bindings [vals={to=1}]
      DEBUG: 787      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:187): Bindings [vals={to=2}]
      DEBUG: 806      main com.bigdata.blueprints.TestPathConstraints.showOptimizedAST(TestPathConstraints.java:246): optimized:
      
      PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
      PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
      PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
      PREFIX owl: <http://www.w3.org/2002/07/owl#>
      PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
      PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
      PREFIX foaf: <http://xmlns.com/foaf/0.1/>
      PREFIX dc: <http://purl.org/dc/elements/1.1/>
      PREFIX hint: <http://www.bigdata.com/queryHints#>
      PREFIX bd: <http://www.bigdata.com/rdf#>
      PREFIX bds: <http://www.bigdata.com/rdf/search#>
      QueryType: SELECT
      includeInferred=true
      SELECT VarNode(to) VarNode(max)
        JoinGroupNode {
          ArbitraryLengthPathNode(left=ConstantNode(TermId(5U)[id:0]), right=VarNode(to)) {
            JoinGroupNode {
              StatementPatternNode(VarNode(-tVarLeft-9e52adf2-c598-4119-bc74-9634ec93c07c)[anonymous], VarNode(eid)[anonymous], VarNode(-tVarRight-1956c90d-1fae-4268-805d-b4e791f0b466)[anonymous]) [scope=DEFAULT_CONTEXTS]
                queryHints={alp.pathExpr=true}
                AST2BOpBase.estimatedCardinality=3
                AST2BOpBase.originalIndex=SPO
              StatementPatternNode(VarNode(eid)[anonymous], ConstantNode(TermId(3U)[bigdata:type]), ConstantNode(TermId(8U)[test:foo])) [scope=DEFAULT_CONTEXTS]
                AST2BOpBase.estimatedCardinality=4
                AST2BOpBase.originalIndex=POS
              StatementPatternNode(VarNode(eid)[anonymous], ConstantNode(TermId(12U)[some:prop]), VarNode(val)[anonymous]) [scope=DEFAULT_CONTEXTS]
                AST2BOpBase.estimatedCardinality=4
                AST2BOpBase.originalIndex=POS
              FILTER( FunctionNode(VarNode(val),VarNode(-unbound-var-max-0))[ FunctionNode.scalarVals=null, FunctionNode.functionURI=http://www.w3.org/2005/xpath-functions#less-than, valueExpr=com.bigdata.rdf.internal.constraints.CompareBOp(val,-unbound-var-max-0)[ CompareBOp.op=LT]] )
            }
          } AST2BOpBase.estimatedCardinality=4
        } AST2BOpBase.estimatedCardinality=4
      DEBUG: 848      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:221): Selection is: com.bigdata.blueprints.BigdataSelection@333e8fa7
      DEBUG: 848      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:222): Selection getBindings size: 1
      DEBUG: 848      main com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:224): Bindings [vals={max=3, to=0}]
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.475 sec <<< FAILURE! - in com.bigdata.blueprints.TestPathConstraints
      testPathFilters(com.bigdata.blueprints.TestPathConstraints)  Time elapsed: 1.474 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: null
      	at junit.framework.Assert.fail(Assert.java:55)
      	at junit.framework.Assert.assertTrue(Assert.java:22)
      	at junit.framework.Assert.assertTrue(Assert.java:31)
      	at junit.framework.TestCase.assertTrue(TestCase.java:201)
      	at com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:227)
      

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        All, can this ticket be closed?

        Show
        bryanthompson bryanthompson added a comment - All, can this ticket be closed?
        Hide
        beebs Brad Bebee added a comment -

        Just confirmed that this ticket is still valid. The test still fails.

         
        
        mvn clean install -U -Dtest=TestPathConstraints#testPathFilters
        
        
        -------------------------------------------------------------------------------
        Test set: com.bigdata.blueprints.TestPathConstraints
        -------------------------------------------------------------------------------
        Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.807 sec <<< FAILURE! - in com.bigdata.blueprints.TestPathConstraints
        testPathFilters(com.bigdata.blueprints.TestPathConstraints)  Time elapsed: 0.161 sec  <<< FAILURE!
        junit.framework.AssertionFailedError: null
                at junit.framework.Assert.fail(Assert.java:55)
                at junit.framework.Assert.assertTrue(Assert.java:22)
                at junit.framework.Assert.assertTrue(Assert.java:31)
                at junit.framework.TestCase.assertTrue(TestCase.java:201)
                at com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:253)
        
        Show
        beebs Brad Bebee added a comment - Just confirmed that this ticket is still valid. The test still fails. mvn clean install -U -Dtest=TestPathConstraints#testPathFilters ------------------------------------------------------------------------------- Test set: com.bigdata.blueprints.TestPathConstraints ------------------------------------------------------------------------------- Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.807 sec <<< FAILURE! - in com.bigdata.blueprints.TestPathConstraints testPathFilters(com.bigdata.blueprints.TestPathConstraints) Time elapsed: 0.161 sec <<< FAILURE! junit.framework.AssertionFailedError: null at junit.framework.Assert.fail(Assert.java:55) at junit.framework.Assert.assertTrue(Assert.java:22) at junit.framework.Assert.assertTrue(Assert.java:31) at junit.framework.TestCase.assertTrue(TestCase.java:201) at com.bigdata.blueprints.TestPathConstraints.testPathFilters(TestPathConstraints.java:253)
        Hide
        bryanthompson bryanthompson added a comment -

        Ok.

        @mike - is this test failure blocking anything?

        Show
        bryanthompson bryanthompson added a comment - Ok. @mike - is this test failure blocking anything?
        Hide
        beebs Brad Bebee added a comment -

        It's not breaking anything of which I'm aware. It should be fixed for clean CI and compliance.

        Show
        beebs Brad Bebee added a comment - It's not breaking anything of which I'm aware. It should be fixed for clean CI and compliance.
        Hide
        beebs Brad Bebee added a comment -
        Show
        beebs Brad Bebee added a comment - Fixed in https://github.com/SYSTAP/bigdata/pull/164

          People

          • Assignee:
            mikepersonick mikepersonick
            Reporter:
            beebs Brad Bebee
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: