Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/361#discussion_r168523058
  
    --- Diff: jena-tdb/src/main/java/org/apache/jena/tdb/solver/BindingTDB.java 
---
    @@ -120,6 +121,8 @@ public Node get1(Var var)
                 if ( id == null )
                     return null ; 
                 n = nodeTable.getNodeForNodeId(id) ;
    +            if ( n == null )
    +                throw new TDBException("No node in NodeTable for NodeId 
"+id);
    --- End diff --
    
    Do we know all/most of the circumstances that might cause this? Is it 
basically an interrupted write? If so, it might be worth including some error 
logging with that hint, but if there are more than one or two potential causes, 
never mind. I mention it because getting from "a missing entry in the 
`NodeTable`" to "that was the aftereffect of a failed write" is going to bring 
some users to the list when they might be able to figure out what happened with 
a simple hint.


---

Reply via email to