[ 
https://issues.apache.org/jira/browse/TINKERPOP3-790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stephen mallette updated TINKERPOP3-790:
----------------------------------------
    Fix Version/s:     (was: 3.1.0-incubating)

This is turning into a brute of a change.  When we did the hangout to discuss 
what could be done for 3.1.0 prior to code freeze, I'd thought I could simplify 
the issue by trying to just focus on implementing {{AutoCloseable}} on 
{{EventStrategy}} so that we could at least release the resources held on the 
Graph instance, but that isn't turning out to be very testable given the 
current way things are setup.  

Given that:

1. we are close to code freeze and this is remaining a "big" issue
2. david robinson has brought up some issues related to how we are dealing with 
eventing
3. marko is gone for the next couple of days and this starts to get into 
territory he thinks about constantly in {{TraversalSource}}

I think it's best if I not introduce anything new here for 3.1.0 - it's best we 
leave this until the issue has clear resolution.

> Implement AutoCloseable on TraversalSource
> ------------------------------------------
>
>                 Key: TINKERPOP3-790
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-790
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.2-incubating
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>
> A {{TraversalSource}} may have resources to release so having a {{close}} 
> method would allows that release to occur.  The specific case has to do with 
> {{EventStrategy}} which registers a listener on {{Transaction}}.  That 
> listener should be removed when the user is done with the 
> {{TraversalSource}}, but there is currently no way to clean that up.  The 
> calling of {{close}} should prevent future traversals from that 
> {{TraversalSource}}. 
> I suppose this also means that a {{TraversalStrategy}} will need to 
> optionally implement {{AutoCloseable}} or some other marker interface to 
> designate it as a strategy that needs to release resources.



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

Reply via email to