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

Adding a subfile, then a superfile to a superfile inside a transaction can fail.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: DFS
    • Labels:
      None

      Description

      If a subfile is added to an empty superfile, then a superfile with subfiles is added to that same empty superfile within a transaction an error occurs:

      " addSubFile: <file1>'s record layout (fixed) is different than <file2>'s (dynamic) "

      It's caused because the empty superfile which has had a subfile added inside the transaction, has not updated by the time the nested superfile is added.
      When the nested superfile is added, it validates that it's subfiles are consistent with the outer super and checks it's attributes.
      Unfortunately as it's within a transaction those attributes are out of date and in this case the record layout attribute is blank.

        Attachments

          Issue Links

            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: