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

Code to check or remote read doesn't correctly failover to mark local copy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4.0
    • Component/s: EclAgent
    • Labels:
      None

      Description

      The bug theoretically would cause hthor to skip the primary part if local and prefer reading a replicate which is a remote stream candidate.

      In practice I'm not sure it happens, because all parts tend to be remote to hthor, or there is no replicate.

      Code involved:

                          if (!isRemoteReadCandidate(agent, rfn, localPath))
                          {
                              Owned<IFile> iFile = createIFile(localPath.str());
                              try
                              {
                                  if (iFile->exists())
      }
      

      The bug is caused by the fact that isRemoteReadCandidate never returns a filled 'localPath' if it returns false.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: