Opened 12 years ago
Last modified 10 years ago
#915 new task
IZ630: Cache in Hostname class is useless
Reported by: | rhierlmeier | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | hedeby | Version: | 1.0 |
Severity: | Keywords: | Sun util | |
Cc: |
Description
[Imported from gridengine issuezilla http://gridengine.sunsource.net/issues/show_bug.cgi?id=630]
Issue #: 630 Platform: Sun Reporter: rhierlmeier (rhierlmeier) Component: hedeby OS: All Subcomponent: util Version: 1.0 CC: None defined Status: NEW Priority: P3 Resolution: Issue type: TASK Target milestone: 1.0u5next Assigned to: rhierlmeier (rhierlmeier) QA Contact: rhierlmeier URL: * Summary: Cache in Hostname class is useless Status whiteboard: Attachments: Issue 630 blocks: Votes for issue 630: Vote for this issue Opened: Mon Mar 9 08:22:00 -0700 2009 ------------------------ Description The Hostname class holds a cache for already resolved hosts. This cache reuses already resolved InetAddress objects. This cache is useless, because the InetAddress class itself has a cached. We should delete this cache. Evaluation The issue has no visible effects on the code. Suggested Fix/Work Around Remove the cache from the Hostname class. Analysis In http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html is described the caching of InetAddress objects. How to test A complete TS run is necessary to check that the system is with the fix stable. An automatic test is hard to achieve, because the hostname resolving on the running host must be changed. ATC: nothing ETC: 1 PD ------- Additional comments from rhierlmeier Wed Nov 25 07:21:10 -0700 2009 ------- Milestone changed
Note: See
TracTickets for help on using
tickets.