Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-226

LLD: consider delaying the queuing of a discovery request immediately after a discard

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • jtsk_2.1
    • River_2.1.2
    • net_jini_discovery
    • None
    • 6364552

    Description

      Bugtraq ID 6364552
      A situation can occur in which a tight loop of discard-discover-discard stack traces under certain circumstances (see the e-mail thread in the comments). Although the LLD takes the position that if it can discover a lookup service, then things must be okay, it might be better to assume that if a lookup service is discarded, things may not be okay. Then, rather than rediscovering a 'not-okay' lookup service which will have to be discarded again, and reporting the same problem over and over again in tight loop, delay the reporting of the problem over time. That is, rather than queuing a rediscovery attempt immediately after a discard, delay the queuing of the attempt in a manner similar to what LLD currently does with retry tasks when failure to discover a lookup occurs.
      Suggested fix:
      Currently, when a discard occurs, LLD computes the next retry time. So it might be as simple as queuing a task at the "next" time in the set of retry times, rather than always queuing a task at the first (0) time.
      See also River-106

      Attachments

        1. RIVER-226.220.patch
          5 kB
          Thomas Vinod Johnson

        Activity

          People

            vinodjohnson Thomas Vinod Johnson
            vinodjohnson Thomas Vinod Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: