Lucene - Core
  1. Lucene - Core
  2. LUCENE-4020

Tests may not be repeatable across different platforms/ JVMs due to different locale/ timezone being picked.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      This is because the source array can be/ is different for each system/ JVM. So this pick is not repeatable for example:

        /** 
         * Return a random Locale from the available locales on the system.
         */
        public static Locale randomLocale(Random random) {
          Locale locales[] = Locale.getAvailableLocales();
          return locales[random.nextInt(locales.length)];
        }
      

      I don't think there is much we can do to make it repeatable (other than maybe enforcing locale using system property).

      1. LUCENE-4020.patch
        8 kB
        Dawid Weiss
      2. LUCENE-4020.diff
        1 kB
        Dawid Weiss

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dawid Weiss made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dawid Weiss made changes -
        Attachment LUCENE-4020.patch [ 12524363 ]
        Dawid Weiss made changes -
        Attachment LUCENE-4020.diff [ 12524073 ]
        Dawid Weiss made changes -
        Attachment LUCENE-4020.diff [ 12524072 ]
        Dawid Weiss made changes -
        Field Original Value New Value
        Attachment LUCENE-4020.diff [ 12524072 ]
        Dawid Weiss created issue -

          People

          • Assignee:
            Dawid Weiss
            Reporter:
            Dawid Weiss
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development