AtesComp opened a new issue, #1583:
URL: https://github.com/apache/jena/issues/1583
### Version
Apache Jena Fuseki 4.7.0-SNAPSHOT
### What happened?
Occasionally (and apparently randomly), a "500 Server Error" is thrown.
The queries are persistent, common queries that work immediately after a
restart, so I don't see problems with the query text.
It seems that, while the previous query reports "200 OK", a lock is not
properly released on occasion.
- A race condition issue?
- A "GET" query followed by a "POST" query?
- The "GET" query is a programmed query. The "POST" query is a Fuseki
website query (http:/\/localhost:3030/#/dataset/MyDS/query). Why would a POST
after a successful GET indicate "Already in a transaction"?
- A "POST" query followed by a "POST" query? **Needs Verification**
- These "POST" queries are all Fuseki website upload queries
(http:/\/localhost:3030/#/dataset/MyDS/upload). This is performed for initial
graph loads on a new Fuseki data store.
- This could be after a "List current graphs" query
(http:/\/localhost:3030/#/dataset/MyDS/edit), which I believe does a GET query.
Sorry there is not more to go on at the moment.
### Relevant output and stacktrace
```shell
2022-10-18 10:59:41.801 INFO [qtp1984328477-44]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [10] GET
http://localhost:3030/COLT/sparql?query=PREFIX+...
2022-10-18 10:59:41.908 INFO [qtp1984328477-44]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [10] 200 OK (105
ms)
2022-10-18 11:00:12.332 INFO [qtp1984328477-51]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [11] GET
http://localhost:3030/COLT/sparql?query=PREFIX+...
2022-10-18 11:00:12.355 INFO [qtp1984328477-51]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [11] 200 OK (22
ms)
2022-10-18 11:00:23.876 INFO [qtp1984328477-51]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [12] POST
http://localhost:3030/MyDS/query
2022-10-18 11:00:23.890 INFO [qtp1984328477-51]
[org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.execute(SPARQLQueryProcessor.java:248)]
- [12] Query = PREFIX xsd: ...
2022-10-18 11:00:23.894 WARN [qtp1984328477-51]
[org.apache.jena.atlas.logging.FmtLog.warn(FmtLog.java:113)] - [12] RC = 500 :
Already in a transaction
org.apache.jena.sparql.JenaTransactionException: Already in a transaction
at
org.apache.jena.sparql.core.TransactionalLock.error(TransactionalLock.java:175)
~[fuseki-server.jar:4.7.0-SNAPSHOT]
...
at
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1077)
~[fuseki-server.jar:4.7.0-SNAPSHOT]
at java.lang.Thread.run(Thread.java:829) ~[?:?]
2022-10-18 11:00:23.906 INFO [qtp1984328477-51]
[org.apache.jena.atlas.logging.FmtLog.info(FmtLog.java:85)] - [12] 500 Server
Error (28 ms)
```
### Are you interested in making a pull request?
Maybe
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]