Hi Christian Makes sense. Sorry I overlooked that. Thanks
Christian Grün christian.gruen@gmail.com ezt írta (időpont: 2023. nov. 12., V 14:47):
Hi Csaba,
If you want to perform parallel/concurrent read and write operations on your databases, you must exclusively use the client/server architecture. See [1] for more details.
Best, Christian
[1] https://docs.basex.org/wiki/Startup#Concurrent_Operations
Csaba Fekete feketecsaba@gmail.com schrieb am So., 12. Nov. 2023, 14:20:
Hi all
Scenario: I am trying to add a file *while a query is being run through the rest api*. Everything is working fine if no query is being run. Am I trying to do something that isn't supported?
The command is:
/opt/basex/bin/basex -v -c"OPEN dbname;ADD $fname.xml"
The command exits with the message:
Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 11.0 beta Java: Ubuntu, 11.0.20.1 OS: Linux, amd64 Stack Trace: java.lang.RuntimeException: dbname: lock file does not exist. at org.basex.util.Util.notExpected(Util.java:68) at org.basex.data.DiskData.finishUpdate(DiskData.java:246) at org.basex.core.cmd.ACreate.update(ACreate.java:97) at org.basex.core.cmd.Add.run(Add.java:56) at org.basex.core.Command.run(Command.java:233) at org.basex.core.Command.execute(Command.java:93) at org.basex.api.client.LocalSession.execute(LocalSession.java:131) at org.basex.api.client.Session.execute(Session.java:36) at org.basex.core.CLI.execute(CLI.java:94) at org.basex.core.CLI.execute(CLI.java:78) at org.basex.core.CLI.execute(CLI.java:65) at org.basex.BaseX.<init>(BaseX.java:82) at org.basex.BaseX.main(BaseX.java:44)
Thanks as always Csaba