JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-54  -  LocalNode: long init when network is broken
Posted Aug 26, 2012 - updated Sep 27, 2012
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     jandam
  • Owned by
    Not owned by anyone
  • Category
    Client
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 3.2
Issue description
Initializing local execution on JPPFClient can take several seconds. Waiting on InetAddress.getHostByAddr when DNS resolution is broken.

JPPFClient client = new JPPFClient(...); client.setLocalExecutionEnabled(true); // here is waiting. In my case about 15 seconds
Steps to reproduce this issue
"main" prio=10 tid=0x00007f6b8c00e000 nid=0x1acf runnable 0x00007f6b94f2a000
   java.lang.Thread.State: RUNNABLE
 at java.net.Inet4AddressImpl.getHostByAddr(Native Method)
 at java.net.InetAddress$1.getHostByAddr(InetAddress.java:870)
 at java.net.InetAddress.getHostFromNameService(InetAddress.java:556)
  at java.net.InetAddress.getHostName(InetAddress.java:498)
 at java.net.InetAddress.getHostName(InetAddress.java:470)
 at org.jppf.utils.SystemUtils.formatAddresses(SystemUtils.java:285)
 at org.jppf.utils.SystemUtils.getNetwork(SystemUtils.java:263)
  - locked <0x0000000754187d28> (a java.lang.Class for org.jppf.utils.SystemUtils)
  at org.jppf.management.JPPFSystemInformation.populate(JPPFSystemInformation.java:157)
 at org.jppf.client.balancer.ChannelWrapperLocal.<init>(ChannelWrapperLocal.java:95)
 at org.jppf.client.balancer.SubmissionManagerClient.updateLocalExecution(SubmissionManagerClient.java:403)
  - locked <0x00000007546627e8> (a org.jppf.client.balancer.SubmissionManagerClient)
  at org.jppf.client.balancer.SubmissionManagerClient.<init>(SubmissionManagerClient.java:144)
  at org.jppf.client.JPPFClient.createSubmissionManager(JPPFClient.java:178)
  at org.jppf.client.AbstractGenericClient.getSubmissionManager(AbstractGenericClient.java:382)
 - locked <0x0000000754662820> (a org.jppf.client.JPPFClient)
  at org.jppf.client.AbstractGenericClient.setLocalExecutionEnabled(AbstractGenericClient.java:296)

#3
Comment posted by
 lolo4j
Sep 27, 10:27
Fixed. Changes committed to SVN trunk revision 2430

The issue was updated with the following change(s):
  • This issue has been closed
  • The status has been updated, from New to Closed.
  • This issue's progression has been updated to 100 percent completed.
  • The resolution has been updated, from Not determined to RESOLVED.
  • Information about the user working on this issue has been changed, from lolo4j to Not being worked on.