Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8179

Backend tests are flaky: time-based srand

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Impala 3.2.0
    • None
    • Backend
    • None
    • ghx-label-3

    Description

      https://gerrit.cloudera.org/#/c/12124/9/be/src/service/unified-betest-main.cc added

          uint32_t seed = time(NULL);
          cout << "seed = " << seed << endl;
          srand(seed);
      

      There is no way to force the seed, and backend tests using rand() are then flaky by default. We should make them unflaky by default (using a specific random seed) and we should also provide a way to override this by setting it by time or to a specific seed for just one run, to help with debugging.

      If we want the coverage that comes from running with a different seed each time, we could run a test multiple times.

      Attachments

        Activity

          People

            joemcdonnell Joe McDonnell
            jbapple Jim Apple
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: