[
https://issues.apache.org/jira/browse/JENA-1401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16203645#comment-16203645
]
ASF GitHub Bot commented on JENA-1401:
--------------------------------------
Github user ajs6f commented on a diff in the pull request:
https://github.com/apache/jena/pull/288#discussion_r144571831
--- Diff:
jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/async/AsyncPool.java
---
@@ -51,7 +51,13 @@ public AsyncTask submit(Runnable task, String
displayName, DataService dataServi
synchronized(mutex) {
String taskId = Long.toString(++counter) ;
Fuseki.serverLog.info(format("Task : %s : %s",taskId,
displayName)) ;
- Callable<Object> c = Executors.callable(task) ;
+ Callable<Object> c = ()->{
+ try { task.run(); }
+ catch (Throwable th) {
+ Fuseki.serverLog.warn(format("Exception in task %s
execution", taskId), th);
--- End diff --
Does this qualify as an error? (Logging-wise)
> Backup doen't work with Fuseki 3.4.0 WAR
> ----------------------------------------
>
> Key: JENA-1401
> URL: https://issues.apache.org/jira/browse/JENA-1401
> Project: Apache Jena
> Issue Type: Bug
> Components: Fuseki
> Affects Versions: Jena 3.4.0
> Environment: Fuseki 3.4.0 deployed as a WAR in Tomcat 8
> Reporter: David Molina Estrada
> Assignee: Andy Seaborne
>
> I am running a Fuseki.war 3.4.0 in a Tomcat. With the previous version,
> 2.6.0, I can do backup from Fuseki web console but after upgrading backup
> doen't work. I don't get any error, the application reponses as if everything
> was fine: "Task backup started at 2017-10-13T12:15:17.431+02:00, finished at
> 2017-10-13T12:15:17.433+02:00".
> In log file, I can see:
> {noformat}
> [2017-10-13 12:15:17] Admin INFO [3] POST
> http://localhost:8080/fuseki/$/backup/ds
> [2017-10-13 12:15:17] Admin INFO [3] Backup dataset /ds
> [2017-10-13 12:15:17] Server INFO Task : 1 : backup
> [2017-10-13 12:15:17] Server INFO [Task 1] starts : backup
> [2017-10-13 12:15:17] Admin INFO [3] 200 OK (4 ms)
> [2017-10-13 12:15:17] Server INFO [Task 1] finishes : backup
> [2017-10-13 12:15:17] Server INFO [4] GET
> http://localhost:8080/fuseki/$/tasks/1
> [2017-10-13 12:15:17] Server INFO [4] Task 1
> [2017-10-13 12:15:17] Server INFO [4] 200 OK (0 ms)
> {noformat}
> But, the backup folder is empty.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)