Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4215

Implement new t5memory statuses processing

    XMLWordPrintable

Details

    • Critical
    • Add support for new t5memory statuses and support of requests timeout with retry

    Description

      T5memory now has several new statuses:

      • waiting for loading - when memory is waiting to be loaded
      • failed to open - when memory failed to open for some reason (next request to this memory will try to load it again)
      • loading - memory is being loaded at the moment

      Field status in "Status" response now can have the following values (previously it was open or available)

      switch(eStatus){
          case OPEN_STATUS:{
            return "open";
          }
          case WAITING_FOR_LOADING_STATUS:{
            return "waiting for loading";
          }
          case FAILED_TO_OPEN_STATUS:{
            return "failed to open";
          }    
          case LOADING_STATUS:{
            return "loading";
          }
          case IMPORT_RUNNING_STATUS:{
            return "import running";
          }
          case REORGANIZE_RUNNING_STATUS:{
            return "reorganize running";
          }
          case AVAILABLE_STATUS:{
            return "available";
          }
          default:{
            return "unknown " + toStr(eStatus) + " status";
          }
      

      Important: Also on import or reorganize (while it is happening) all requests except "Status" to such memory return 505 status code.

      Attachments

        Issue Links

          Activity

            People

              leonkiz Leon Kiz
              leonkiz Leon Kiz
              Sanya Mikhliaiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: