Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3501

random sampler is not random (and so facet SamplingWrapperTest occasionally fails)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      RandomSample is not random at all:
      It does not even import java.util.Random, and its behavior is deterministic.

      in addition, the test testCountUsingSamping() never retries as it was supposed to (for taking care of the hoped-for randomness).

        Attachments

        1. LUCENE-3501.patch
          55 kB
          Doron Cohen

          Activity

            People

            • Assignee:
              doronc Doron Cohen
              Reporter:
              doronc Doron Cohen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: