[MGNLRANK-22] Shutting down properly timer Created: 27/Sep/23 Updated: 06/Oct/23 Resolved: 06/Oct/23 |
|
| Status: | Closed |
| Project: | Ranker |
| Component/s: | None |
| Affects Version/s: | 1.0.1 |
| Fix Version/s: | 1.0.2 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | ricardo gonzalez | Assignee: | ricardo gonzalez |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Epic Link: | User-based ranking |
| Story Points: | 3 |
| Team: | |
| Work Started: | |
| Approved: |
Yes
|
| Description |
|
Whenever the application shuts down, the Timer process linked to UbR (which is responsible for persisting the memory in DB at every defined ratio time) is not properly shut down:
26-Sep-2023 16:49:03.382 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [magnoliaAuthor] appears to have started a thread named [user-ranker-persistence] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@17.0.8/java.lang.Object.wait(Native Method)
java.base@17.0.8/java.util.TimerThread.mainLoop(Timer.java:563)
java.base@17.0.8/java.util.TimerThread.run(Timer.java:516)
Issue reported in this slack conversation: |