mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
21.29.2008 ed58db6ca2f1bf1cff45600f960996a370d70d02
refs
author jvergara <jvergara@localhost>
Monday, January 21, 2008 19:29 +0100
committer jvergara <jvergara@localhost>
Monday, January 21, 2008 19:29 +0100
commited58db6ca2f1bf1cff45600f960996a370d70d02
tree 32a421b4923acedebb38eb670c14d0128eb09e46 tree | zip | gz
parent 4cb706b08c252bbcb7a0e3604b0daf4f7341a931 view | diff
Fix for issue 2862 (Online backup command exit status 0 while backup is failed).

The code used to consider the errors during backup as warnings. In general the errors during the backupmean that at least one backend could not be backed up, the modifications simply update the code to return TaskState.STOPPED_BY_ERROR instead of TaskState.COMPLETED_WITH_ERRORS. This is more accurate because if one of the backends is not backed up we should return an error code and because every error detected in the backup code stops the backup processing of a particular backend.
1 files modified
7 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tasks/BackupTask.java 7 ●●●●● diff | view | raw | blame | history