Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4080

Project schema update event causes error reload NEW DataModelDesc

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: v2.5.2
    • Fix Version/s: v2.6.5, v3.1.0, v3.0.1
    • Component/s: Metadata
    • Labels:
      None

      Description

      Hi, dear Kylin dev team:
      When create new DataModelDesc, DataModelManager.createDataModelDese:246 will temporarily add the new model name into selected project(project1) cache, but won't persist it. The TEMPORARY ADD operation will make the model reloading successful, rather than throw "No project found for model ..." exception(at ProjectManager:391).
      However, If there have another threads are processing "Broadcasting update project_schema, project1", it will clean up cache of project1 and reload it, which will reset the "TEMPORARY ADD" operation. Meanwhile, the model saving thread has persisted the DataModelDesc and start to reload it, but will find there have "No project for this model".
      The new model can't be created again because the conflict timestamp and can't be reloaded into cache because the abrove problem.
      How do you think about this??

      Best regards
      yuzhang

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simpleyuzhang Yuzhang QIU
                Reporter:
                simpleyuzhang Yuzhang QIU
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: