Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
ebc1eec6
Commit
ebc1eec6
authored
Dec 18, 2019
by
Piotr Gawron
Browse files
when removing check for broader exception
parent
731b9fc8
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
ebc1eec6
...
...
@@ -5,6 +5,8 @@ minerva (14.0.6) stable; urgency=medium
annotators (#1047)
* Bug fix: if map has SHOW OVERVIEW, the legend/comment/clear were not
displayed at all (regresion 14.0.5, #1045)
* Bug fix: when there is a problem with database during removing project,
project removal doesn'
t
hang
(#
1058
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Wed
,
18
Dec
2019
12
:
00
:
00
+
0200
...
...
service/src/main/java/lcsb/mapviewer/services/impl/ProjectService.java
View file @
ebc1eec6
...
...
@@ -290,7 +290,7 @@ public class ProjectService implements IProjectService {
}
modelService
.
removeModelFromCacheByProjectId
(
p
.
getProjectId
());
}
catch
(
Hibernat
eException
e
)
{
}
catch
(
Persistenc
eException
e
)
{
logger
.
error
(
"Problem with database"
,
e
);
handleHibernateExceptionRemovingReporting
(
project
,
e
);
}
finally
{
...
...
@@ -591,7 +591,7 @@ public class ProjectService implements IProjectService {
* project that was being removed
* @param exception
*/
protected
void
handleHibernateExceptionRemovingReporting
(
Project
originalProject
,
Hibernat
eException
exception
)
{
protected
void
handleHibernateExceptionRemovingReporting
(
Project
originalProject
,
Persistenc
eException
exception
)
{
// we need to open separate thread because current one thrown db exception
// and transaction is corrupted and will be rolledback
Thread
reportInSeparateThread
=
new
Thread
(
new
Runnable
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment