You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/05/29 07:55:26 UTC

[GitHub] [incubator-dolphinscheduler] lgcareer commented on a change in pull request #2838: fix table not exist when init db metadata

lgcareer commented on a change in pull request #2838:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/2838#discussion_r432229496



##########
File path: dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/upgrade/DolphinSchedulerManager.java
##########
@@ -112,11 +112,12 @@ public void upgradeDolphinScheduler() throws Exception{
             for(String schemaDir : schemaList) {
                 schemaVersion = schemaDir.split("_")[0];
                 if(SchemaUtils.isAGreatVersion(schemaVersion , version)) {
-
-                    logger.info("upgrade DolphinScheduler metadata version from " + version + " to " + schemaVersion);
-
+                    logger.info("upgrade DolphinScheduler metadata version from {} to {}", version, schemaVersion);
                     logger.info("Begin upgrading DolphinScheduler's table structure");
                     upgradeDao.upgradeDolphinScheduler(schemaDir);
+                    if (upgradeDao.isExistsTable("t_ds_worker_group")) {

Review comment:
       Hi,why remove to this place,it will run more one times




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org