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

CMS setters cannot work unless you setMaxMergeCount before you setMaxThreadCount

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.4, 6.0
    • None
    • None
    • New

    Description

        public void setMaxThreadCount(int count) {
          ...
          if (count > maxMergeCount) {
            throw new IllegalArgumentException("count should be <= maxMergeCount (= " + maxMergeCount + ")");
          }
      

      but:

         public void setMaxMergeCount(int count) {
          ...
          if (count < maxThreadCount) {
            throw new IllegalArgumentException("count should be >= maxThreadCount (= " + maxThreadCount + ")");
          }
      

      So you must call them in a magical order. I think we should nuke these setters and just have a CMS(int,int)

      Attachments

        1. LUCENE-5080.patch
          9 kB
          Robert Muir
        2. LUCENE-5080.patch
          11 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: