Skip to content
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

can not get apoc.periodic.submit() to run CALL db.createUniquePropertyConstraint() #126

Closed
neo-technology-build-agent opened this issue Sep 1, 2022 · 2 comments · Fixed by #208 or neo4j-contrib/neo4j-apoc-procedures#3211

Comments

@neo-technology-build-agent
Copy link
Collaborator

Issue by Dcanzano
Friday Feb 08, 2019 at 14:27 GMT
Originally opened as neo4j-contrib/neo4j-apoc-procedures#1089


Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use Streams, please ask on StackOverflow instead of creating an issue here.

Expected Behavior (Mandatory)

Unable to get apoc.periodic.submit() to call CALL db.createUniquePropertyConstraint(":E(id)", "lucene-1.0") as the constraint and associated index are never created. No errors, nothing written to debug.log to describe failure

Actual Behavior (Mandatory)

expect the constraint and related index to be created

How to Reproduce the Problem

have tried
call apoc.periodic.submit('job123','CALL db.createUniquePropertyConstraint(":E(id)","lucene-1.0");');

or

call apoc.periodic.submit('job123','CALL db.createUniquePropertyConstraint(":E(id)","lucene-1.0");');

but still no success

Simple Dataset (where it's possibile)

//Insert here a set of Cypher statements that helps us to reproduce the problem
see above

Steps (Mandatory)

see above

Screenshots (where it's possibile)

Specifications (Mandatory)

Currently used versions

Versions

@neo-technology-build-agent
Copy link
Collaborator Author

Comment by sarmbruster
Friday Feb 08, 2019 at 14:36 GMT


theory: apoc.periodic.submit uses mode=WRITE while the call is a schema operation?

@neo-technology-build-agent
Copy link
Collaborator Author

Comment by jexp
Tuesday Feb 12, 2019 at 13:46 GMT


Yes that was my thought too.

OTOH periodic.submit runs it in a background thread/scheduler, but I have to check which database that uses. I guess it just submits a closure over the db that was used in the submit procedure.

vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Oct 11, 2022
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Oct 11, 2022
vga91 added a commit that referenced this issue Oct 18, 2022
…208)

* Fixes #126: apoc.periodic.submit fails with schema operations (core)
* removed unused import
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue Oct 18, 2022
…ns (neo4j/apoc#208)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (core)
* removed unused import
vga91 added a commit that referenced this issue Oct 18, 2022
vga91 added a commit that referenced this issue Oct 24, 2022
* Fixes #126: Improve validateQuery
* improved err. message
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue Oct 24, 2022
* Fixes #126: Improve validateQuery
* improved err. message
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Oct 25, 2022
…ns (neo4j/apoc#208) (#3234)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (neo4j/apoc#208)

* Fixes neo4j/apoc#126: Improve validateQuery (neo4j/apoc#218)
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue Oct 25, 2022
…ns (neo4j/apoc#208) (neo4j-contrib#3234)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (neo4j/apoc#208)

* Fixes neo4j/apoc#126: Improve validateQuery (neo4j/apoc#218)
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Oct 25, 2022
…ns (neo4j/apoc#208) (#3234) (#3246)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (neo4j/apoc#208)
* Fixes neo4j/apoc#126: Improve validateQuery (neo4j/apoc#218)
* removed unused imports
* fixed full compilation error
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Jan 24, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Mar 28, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Mar 28, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Mar 28, 2023
…ns (extended) (#3211)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (extended)

* added test

* updated extended.txt
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Mar 28, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Apr 28, 2023
…ns (extended) (#3211)

* Fixes neo4j/apoc#126: apoc.periodic.submit fails with schema operations (extended)

* added test

* updated extended.txt
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue Jul 25, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Jul 25, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Jul 27, 2023
vga91 added a commit to neo4j-contrib/neo4j-apoc-procedures that referenced this issue Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant