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

Unable to use taskbot in update mode from Roxy controller that uses query-router #4

Open
rjrudin opened this issue May 4, 2016 · 1 comment

Comments

@rjrudin
Copy link

rjrudin commented May 4, 2016

I am working on a Roxy app that uses the Roxy rewriter. Each rewrite rule uses either the query-router or update-router.

I'm trying to use taskbot (which is a very nice library, btw) in a Roxy controller that uses the query-router. I am invoking taskbot:list-segment-process - the one that takes 6 arguments (sequence, batch size, job label, function, map, options). I am passing in OPTIONS-UPDATE for options.

My function attempts to insert a document. MarkLogic complains because of an update happening from a query transaction.

My assumption was that since taskbot should be executing the function on the task server, the fact that it does an update shouldn't impact the read-only transaction.

Have you run into this before with Roxy, and/or have any idea what I'm doing wrong? I'm working around the issue now by doing an xdmp:eval on the function that invokes taskbot so that taskbot is invoked in a separate transaction.

@grtjn
Copy link

grtjn commented May 10, 2016

OPTIONS-UPDATE uses transaction-mode update, but latest ML supports update-auto-commit. Options might also need to include isolation different-transaction, which is not added to the predefined options either..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants