From af7d66f0224061c7758d53ca7b8059881f56c1d0 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Fri, 25 Jun 2010 10:13:48 +0000
Subject: [PATCH] Enhanced the messages logged when an IOException is encountered while writing files in the export and import/rebuild tools. Also tools now return non 0 when they encounter an IO Exception

---
 opends/src/messages/messages/jeb.properties |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/opends/src/messages/messages/jeb.properties b/opends/src/messages/messages/jeb.properties
index 2ba7d9d..6ef34be 100644
--- a/opends/src/messages/messages/jeb.properties
+++ b/opends/src/messages/messages/jeb.properties
@@ -91,7 +91,6 @@
 MILD_ERR_JEB_DUPLICATE_INDEX_CONFIG_39=The index configuration entry '%s' \
  will be ignored because it specifies the attribute type '%s', which has \
  already been defined in another index configuration entry
-SEVERE_ERR_JEB_IO_ERROR_40=I/O error during backend operation: %s
 NOTICE_JEB_BACKEND_STARTED_42=The database backend %s containing %d entries \
  has started
 MILD_ERR_JEB_IMPORT_PARENT_NOT_FOUND_43=The parent entry '%s' does not exist
@@ -330,7 +329,8 @@
 SEVERE_ERR_JEB_DIRECTORY_DOES_NOT_EXIST_174=The backend database directory \
  '%s' does not exist
 SEVERE_ERR_JEB_IMPORT_LDIF_INDEX_FILEWRITER_ERR_175=The following I/O \
-error was received while processing the %s index scratch file: %s
+error was received while writing the %s index scratch file in the temporary \
+  directory: %s
 NOTICE_JEB_IMPORT_LDIF_ROOTCONTAINER_CLOSE_176=Import LDIF environment close \
   took %d seconds
 NOTICE_JEB_IMPORT_LDIF_DN_NO_PARENT_177=The DN %s was found to be missing \
@@ -405,3 +405,9 @@
 NOTICE_JEB_IMPORT_ADJUST_THREAD_COUNT_213=Insufficient memory to allocate \
 enough phase one buffers for use by %d threads. Lowering the number of threads \
 used to %d
+SEVERE_ERR_JEB_EXPORT_IO_ERROR_214=I/O error occurred while exporting entry: %s
+SEVERE_ERR_JEB_IMPORT_LDIF_READER_IO_ERROR_215=I/O error occurred while opening \
+  the LDIF stream
+SEVERE_ERR_JEB_IMPORT_BUFFER_IO_ERROR_216=I/O error occurred while reading \
+  the index scratch file %s in the temporary directory
+

--
Gitblit v1.10.0