Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1188

Probe.sh does not display matches summary on termination.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.4.9
    • 2.4.7
    • None

      Matched statistics are not appearing at the end of the probe.sh output

      • when probe.sh, with the -match option specified, terminates, I should only see responses which contain the match string, and should see a summary line something like:

      Total responses=1, 1 matches, 3 non-matches

      This reflects how many responses were matched with the -match <match string> parameter.

      For example:

      [rachmatowicz@vmg18 bin]$ ./probe.sh -match Tomcat-Cluster
      – send probe on /224.0.75.75:7500

      #1 (262 bytes): 10.16.95.19:44066 (Tomcat-Cluster)
      local_addr=10.16.95.19:44066
      group_name=Tomcat-Cluster
      version=2.4.7.GA, cvs="$Id: Version.java,v 1.42.2.14 2009/11/03 23:15:25 rachmatowicz Exp $"
      view: [10.16.95.19:44066|0] [10.16.95.19:44066]
      group_addr=239.11.12.13:45577

      Here, the responses were correctly matched, but no summary line is produded.

      This summary line is not appearing, because a thread set up to close the multicast socket after timeout seconds is causing the multicast socket to generate an exception and return, before the control loop can be exited and the summary line printed. Moving the summary line into the exception handling code fixes the problem.

              rhn-engineering-bban Bela Ban
              rachmato@redhat.com Richard Achmatowicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: