-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5kItK998] Fix bug in triggers #513
Conversation
744cfc7
to
a0978bd
Compare
@@ -95,28 +98,31 @@ public void checkEnabled() { | |||
} | |||
|
|||
private void updateCache() { | |||
activeTriggers.clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the problem, triggers were not run between this call and adding them all back later on.
private final Log log; | ||
private final GraphDatabaseService db; | ||
private final DatabaseManagementService databaseManagementService; | ||
private final ApocConfig apocConfig; | ||
private final Pools pools; | ||
private final JobScheduler jobScheduler; | ||
|
||
private long lastUpdate; | ||
private volatile long lastUpdate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need to be thread safe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be set and read from multiple different threads at the same time (from scheduled thread and from procedures calling into here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The traceability doesn't matter for merging the pr but the LICENSES need to be up to date and they depend on the neo4j version been run. You'll have to download the latest neo4j SNAPSHOT and do ./gradlew generateLicensesFiles
6753951
to
d6ff118
Compare
Fix a bug where active triggers are not executed for all transactions.
9b20f04
to
0fa5810
Compare
Fix a bug where active triggers are not executed.