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
da40e1a9
Commit
da40e1a9
authored
14 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1503 Refactored TransferredDataSetHandler.RegistrationHelper
SVN: 16238
parent
97912e06
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/TransferredDataSetHandler.java
+3
-7
3 additions, 7 deletions
...ch/systemsx/cisd/etlserver/TransferredDataSetHandler.java
with
3 additions
and
7 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/TransferredDataSetHandler.java
+
3
−
7
View file @
da40e1a9
...
@@ -349,8 +349,6 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
...
@@ -349,8 +349,6 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
private
final
class
RegistrationHelper
extends
DataSetRegistrationAlgorithm
private
final
class
RegistrationHelper
extends
DataSetRegistrationAlgorithm
{
{
private
final
TransferredDataSetHandler
transferredDataSetHandler
;
/**
/**
* @param transferredDataSetHandler
* @param transferredDataSetHandler
* @param incomingDataSetFile
* @param incomingDataSetFile
...
@@ -360,7 +358,6 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
...
@@ -360,7 +358,6 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
File
incomingDataSetFile
,
IDelegatedActionWithResult
<
Boolean
>
cleanAftrewardsAction
)
File
incomingDataSetFile
,
IDelegatedActionWithResult
<
Boolean
>
cleanAftrewardsAction
)
{
{
super
(
incomingDataSetFile
,
cleanAftrewardsAction
);
super
(
incomingDataSetFile
,
cleanAftrewardsAction
);
this
.
transferredDataSetHandler
=
transferredDataSetHandler
;
}
}
// state accessors
// state accessors
...
@@ -463,9 +460,8 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
...
@@ -463,9 +460,8 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
@Override
@Override
protected
void
rollback
(
final
Throwable
throwable
)
throws
Error
protected
void
rollback
(
final
Throwable
throwable
)
throws
Error
{
{
this
.
transferredDataSetHandler
.
stopped
|=
stopped
|=
throwable
instanceof
InterruptedExceptionUnchecked
;
throwable
instanceof
InterruptedExceptionUnchecked
;
if
(
stopped
)
if
(
this
.
transferredDataSetHandler
.
stopped
)
{
{
Thread
.
interrupted
();
// Ensure the thread's interrupted state is cleared.
Thread
.
interrupted
();
// Ensure the thread's interrupted state is cleared.
getOperationLog
().
warn
(
getOperationLog
().
warn
(
...
@@ -484,7 +480,7 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
...
@@ -484,7 +480,7 @@ public final class TransferredDataSetHandler implements IPathHandler, ISelfTesta
throw
(
Error
)
throwable
;
throw
(
Error
)
throwable
;
}
}
UnstoreDataAction
action
=
rollbackStorageProcessor
(
throwable
);
UnstoreDataAction
action
=
rollbackStorageProcessor
(
throwable
);
if
(
this
.
transferredDataSetHandler
.
stopped
==
false
)
if
(
stopped
==
false
)
{
{
if
(
action
==
UnstoreDataAction
.
MOVE_TO_ERROR
)
if
(
action
==
UnstoreDataAction
.
MOVE_TO_ERROR
)
{
{
...
...
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