Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-14520

Redis plugin - improve timeout test to include additional possible outcomes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.0.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      The last test in rediserrortests.ecl -

      STRING pluginTO := 'Redis Plugin: ERROR - function timed out internally.';
      STRING redisTO := 'Redis Plugin: ERROR - GetOrLock<type> \'timeoutTest2\' on database 0 for 127.0.0.1:6379 failed : Resource temporarily unavailable';
      dsTO2 := DATASET(NOFOLD(1), TRANSFORM({string value}, SELF.value := redis.GetOrLockString('timeoutTest' + (string)(1+COUNTER), server, /*database*/, password, 1/*ms*/)));
      SEQUENTIAL(
          myRedis.FlushDB();
          myRedis.GetOrLockString('timeoutTest2');
          OUTPUT(CATCH(dsTO2, ONFAIL(TRANSFORM({ STRING value }, SELF.value := IF(FAILMESSAGE = pluginTO OR FAILMESSAGE = redisTO, 'Timed Out', 'Unexpected Error - ' + FAILMESSAGE)))));
          );
      

      should also include the error string for when the timeout occurs within the attempt to connect i.e. "Redis Plugin: ERROR - server authentication for 127.0.0.1:6379 failed : Resource temporarily unavailable"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jamienoss Jamie Noss
                Reporter:
                jamienoss Jamie Noss
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: