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

write conflict while add model by different query server parallelly

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      a kylin cluster have more than 1 query server, all of them are the backend server of nginx.

      when our user use RESTful API to create model in the same project parallelly, there will be a problem.

      the server returns:

      // code placeholder
      Overwriting conflict /project/learn_kylin.json, expect old TS 1572596034269, but it is 1572596042929
      

      BUT, the model '/model_desc/xxx.json' has already in metastore, so the next time our user want

      to retry (create model), he will get:

      // code placeholder
      Overwriting conflict /model_desc/test_945.json, expect old TS 0, but it is 1572596193812
      

      I think the problem is that:

      when server A receive PUT model, it will change the project info, but the cache update broadcast cannot be processed by server B before server B processing another model creation request.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zhoukangcn ZhouKang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: