Revision 2739
Added by Jing Tao about 19 years ago
src/edu/ucsb/nceas/metacat/ReplicationHandler.java | ||
---|---|---|
390 | 390 |
} |
391 | 391 |
else |
392 | 392 |
{ |
393 |
MetacatReplication.replLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber + |
|
393 |
MetacatReplication.replErrorLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
|
|
394 | 394 |
" into "+tableName + " from " + |
395 | 395 |
remoteserver +" because "+e.getMessage()); |
396 | 396 |
REVERRORNUMBER++; |
... | ... | |
513 | 513 |
} |
514 | 514 |
else |
515 | 515 |
{ |
516 |
MetacatReplication.replLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber + |
|
516 |
MetacatReplication.replErrorLog("" +REVERRORNUMBER + " Failed to write xml doc " + accNumber +
|
|
517 | 517 |
" into "+tableName + " from " + |
518 | 518 |
remoteserver +" because "+e.getMessage()); |
519 | 519 |
REVERRORNUMBER++; |
... | ... | |
1066 | 1066 |
{ |
1067 | 1067 |
logMetacat.error("Local rev for docid "+ docid + " could not "+ |
1068 | 1068 |
" be found because " + e.getMessage()); |
1069 |
MetacatReplication.replErrorLog("Docid "+ docid + " could not be "+ |
|
1069 |
MetacatReplication.replErrorLog(""+DOCERRORNUMBER+"Docid "+ docid + " could not be "+
|
|
1070 | 1070 |
"written because error happend to find it's local revision"); |
1071 |
DOCERRORNUMBER++; |
|
1071 | 1072 |
throw new Exception (e.getMessage()); |
1072 | 1073 |
} |
1073 | 1074 |
logMetacat.info("Local rev for docid "+ docid + " is "+ |
... | ... | |
1159 | 1160 |
{ |
1160 | 1161 |
logMetacat.error("Local rev for docid "+ docid + " could not "+ |
1161 | 1162 |
" be found because " + e.getMessage()); |
1162 |
MetacatReplication.replErrorLog("Docid "+ docid + " could not be "+ |
|
1163 |
MetacatReplication.replErrorLog(""+REVERRORNUMBER+" Docid "+ docid + " could not be "+
|
|
1163 | 1164 |
"written because error happend to find it's local revision"); |
1165 |
REVERRORNUMBER++; |
|
1164 | 1166 |
throw new Exception (e.getMessage()); |
1165 | 1167 |
} |
1166 | 1168 |
logMetacat.info("rev list in xml_revision table for docid "+ docid + " is "+ |
Also available in: Unified diff
Fixed log bug when xml_revision updated failed.