Napsetern
ATApache TinkerPop
•Created by Napsetern on 3/31/2023 in #questions
Custom MutationListener on Transaction
Correct me if I'm wrong but you mean at the end in the status check in the transactionnalQueue ? If so no change noticed.
So that means this default code will never trigger the listener a second time ?
since we never "re add" the transactionnal listener ?
19 replies
ATApache TinkerPop
•Created by Napsetern on 3/31/2023 in #questions
Custom MutationListener on Transaction
I had no problem with a non TransactionnalEventQueue (I think it's called DefaultEventQueue) my event are caught and my listener is triggered
19 replies
ATApache TinkerPop
•Created by Napsetern on 3/31/2023 in #questions
Custom MutationListener on Transaction
I have tested it with a simple Java App , I tried commit, close and it's no different that just doing a simple addV(), event are catched and added to the event queue but listener is never fired on those event.
19 replies
ATApache TinkerPop
•Created by Napsetern on 3/31/2023 in #questions
Custom MutationListener on Transaction
Basically in the TransactionnalEventQueue code below from EventStrategy class I have the feeling that I never go into the else part.
19 replies
ATApache TinkerPop
•Created by Napsetern on 3/31/2023 in #questions
Custom MutationListener on Transaction
Sure, so I have a JanusGraph where I define in the groovy script g with the EventStrategy and my Custom Listener
I then start it and see in my logs that both my transactionnal queue and listener are created
Then I launch gremlin
I add a vertex
I see that my EventQueue size increased but my listener is not triggered.
Since It's a transactionnal queue I try to use g.tx() :
but I see in my logs the same output as a lone g.addV(), my EventQueue gets populated with the event but my event queue is never fired.
19 replies