Change the maximum code level reported to the site contact from "info" to "notice". This is to reduce the amount of diagnostic output generated in the email reports to the site contact. Diagnositcs of type "error", "warning", and "notice" will be sent to the site contact, while messages of type "info" and "debug" will not (but they will still be sent to the Harvester Administrator).
Modified the way checkDocumentTable is accessed. Also removed the while loop from the checkDocumentTable. Now if the document is not found, the thread goes to sleep - instead of checking again. (In hope of a more bugfree code)
Replaced access to NodeRecord.<variable> with NodeRecord.<getVariable>
1. Changed teh access modifier from public to private for variables2. Added a new variable for nodedatanumerical3. added a new constructor
Moved printMessage statements to inside the if loop so that they are not printed each time getInstance is called
Using xml_path_index instead of xml_index to find documents which havnt been indexed.
Replaced hardcoded namespaces with variable defined in metacat.properties
Changed logMetacat to be a local variable in MetaCatServlet to avoid any potential threading issues.
Metacat has had problems with threading issues when accessed from ecogrid. These problems may stem from the use of shared global variables within the servlet that are not protected against threading problems. We used a lot of these, which I am eliminating in this commit. Besides final variables used as constants (which are not a problem), now there are only three unprotected variables (sessionHash, logMetacat, and conn) which are harder to eliminate. I will be discussiong this with Sid tomorrow to see how to eliminate them.
Fixed the bug that replicate data file failed that the documents records wouldn't be deleted.
View revisions
Also available in: Atom