Opened 15 years ago
Closed 13 years ago
#138 closed defect (fixed)
Rating update not executing a commit
Reported by: | bnutsch | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | User interface (web) | Version: | v2.4.0 Final |
Keywords: | Sessions, commit, popularity, hung | Cc: |
Description
This statement is holding up other sessions of this application because it is not executing a commit until much later:
UPDATE Metadata SET popularity = popularity +1 WHERE id = :1 AND isHarvested='n'”
We are using Oracle 10g, load testing with Loadrunner, and can only run 30 users for ~25 min until we start getting hung threads. The fix is to add a commit after setting the metadata popularity update.
Change History (2)
comment:1 by , 15 years ago
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Finally fixed by adding a new method so that any thread request a database connection that they can close when complete. Otherwise database connections in use by the thread would be closed by jeeves when the service completed.
Fixed by the addition of the IncreasePopularityTask in src/org/fao/geonet/services/metadata/Show.java?
Maybe the increasePopularity calls in Download.java and DownloadArchive.java (see src/org/fao/geonet/services/resources) need attention too?