Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
41682375
Commit
41682375
authored
9 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-2329 EagerShufflingTask: Improved log message.
SVN: 34481
parent
eecd7d57
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/postregistration/EagerShufflingTask.java
+7
-4
7 additions, 4 deletions
...x/cisd/etlserver/postregistration/EagerShufflingTask.java
with
7 additions
and
4 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/postregistration/EagerShufflingTask.java
+
7
−
4
View file @
41682375
...
...
@@ -223,10 +223,14 @@ public class EagerShufflingTask extends AbstractPostRegistrationTaskForPhysicalD
{
if
(
shareWithMostFreeOrNull
!=
null
)
{
String
shareId
=
shareWithMostFreeOrNull
.
getShareId
();
try
{
if
(
service
.
isDataSetOnTrashCanOrDeleted
(
dataSetCode
))
{
logger
.
log
(
LogLevel
.
INFO
,
"Data set "
+
dataSetCode
+
" will not be moved from share because is on the trashcan or deleted."
);
if
(
service
.
isDataSetOnTrashCanOrDeleted
(
dataSetCode
))
{
logger
.
log
(
LogLevel
.
WARN
,
"Data set "
+
dataSetCode
+
" will not be moved from share "
+
dataSet
.
getDataSetShareId
()
+
" to "
+
shareId
+
" because it is in the trash can or has been deleted."
);
}
else
{
long
freeSpaceBefore
=
shareWithMostFreeOrNull
.
calculateFreeSpace
();
File
share
=
new
File
(
storeRoot
,
shareIdManager
.
getShareId
(
dataSetCode
));
...
...
@@ -235,7 +239,6 @@ public class EagerShufflingTask extends AbstractPostRegistrationTaskForPhysicalD
new
File
(
share
,
dataSet
.
getDataSetLocation
()),
shareWithMostFreeOrNull
.
getShare
(),
getChecksumProvider
(),
logger
);
String
shareId
=
shareWithMostFreeOrNull
.
getShareId
();
logger
.
log
(
LogLevel
.
INFO
,
"Data set "
+
dataSetCode
+
" successfully moved from share "
+
dataSet
.
getDataSetShareId
()
+
" to "
+
shareId
+
"."
);
...
...
@@ -254,7 +257,7 @@ public class EagerShufflingTask extends AbstractPostRegistrationTaskForPhysicalD
}
catch
(
Throwable
t
)
{
logger
.
log
(
LogLevel
.
ERROR
,
"Couldn't move data set "
+
dataSetCode
+
" to share "
+
share
WithMostFreeOrNull
.
getShareId
()
+
"."
,
t
);
+
" to share "
+
share
Id
+
"."
,
t
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment