neo4j/python-embedded — Issue #16: Index creation not isolated by transaction
Author: wojtek
Created: 2012-02-08 02:01:14+00:00
State: open

from neo4j import GraphDatabase
db = GraphDatabase('/tmp/test')

with db.transaction:
category_idx = db.node.indexes.create("test")
raise Exception()

after the exception the index does exist when it should not:

> db.node.indexes.exists("test")
1