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

DFUPlus copysuper action result report is wrong.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.8
    • Component/s: DFU Server
    • Labels:
      None
    • Environment:
      Any

      Description

      Copying a superfile with DFUPlus command line tool or from ECL code with this code fragment:

      import Std.File AS FileServices;
      
      FileServices.DfuPlusExec('action=copysuper server=. srcname=ati::superfile dstname=.::superfile_my_copy dstcluster=myroxie srcdali=. overwrite=1');
       

      reports:

      Superfile copy failed: D20190114-115857 

      However the superfile is copied and the result is clean. 

      The problem is  in the return value checking at the end of DFUPlus copysuper function:

       Owned<IClientCopyResponse> result = sprayclient->Copy(req);
          const char* ret = result->getResult();
          if(ret == nullptr || *ret == '\0')
              exc(result->getExceptions(),"copying");
          else if (stricmp(ret,"OK")==0)
              info("Superfile copy completed\n");
          else
              info("Superfile copy failed: %s\n",ret);
      

      because the sprayclient->Copy(req) provides WUID as result if the operation was successful.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                attilavamos Attila Vamos
                Reporter:
                attilavamos Attila Vamos
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: