Skip to content

Commit

Permalink
Test and fix for delete parallel problems
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Sep 12, 2017
1 parent 2231fbb commit f748f66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -1052,7 +1052,7 @@ private boolean isOverGrace(XMLGregorianCalendar now, Duration gracePeriod, XMLG
}

private boolean isCompleted(OperationResultStatusType statusType) {
return statusType != OperationResultStatusType.IN_PROGRESS && statusType != OperationResultStatusType.UNKNOWN;
return statusType != null && statusType != OperationResultStatusType.IN_PROGRESS && statusType != OperationResultStatusType.UNKNOWN;
}

private List<PendingOperationType> sortOperations(List<PendingOperationType> pendingOperations) {
Expand Down
Expand Up @@ -199,6 +199,7 @@
<useProposedShadows>true</useProposedShadows>
<recordPendingOperations>all</recordPendingOperations>
<avoidDuplicateOperations>true</avoidDuplicateOperations>
<pendingOperationGracePeriod>PT15M</pendingOperationGracePeriod> <!-- Not need for this. But presence of grace period may induce some bugs -->
</consistency>

</resource>

0 comments on commit f748f66

Please sign in to comment.