[ 
https://issues.apache.org/jira/browse/HIVE-24674?focusedWorklogId=544001&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-544001
 ]

ASF GitHub Bot logged work on HIVE-24674:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Jan/21 03:40
            Start Date: 29/Jan/21 03:40
    Worklog Time Spent: 10m 
      Work Description: ayushtkn commented on a change in pull request #1897:
URL: https://github.com/apache/hive/pull/1897#discussion_r566559562



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplDumpTask.java
##########
@@ -961,6 +985,20 @@ Long bootStrapDump(Path dumpRoot, DumpMetaData dmd, Path 
cmRoot, Hive hiveDb)
     }
   }
 
+  private void updateReplSourceFor(Hive hiveDb, String dbName, Database db,
+      String value) throws HiveException {
+    Map<String, String> params = db.getParameters();
+    if (params != null) {
+      params.put("repl.source.for", value);
+      db.setParameters(params);
+    } else {
+      db.setParameters(Collections.singletonMap("repl.source.for", value));
+    }
+    hiveDb.alterDatabase(dbName, db);
+    LOG.warn("repl.source.for isn't specified for {} using value of {} ",

Review comment:
       Removed




----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 544001)
    Time Spent: 1.5h  (was: 1h 20m)

> Set repl.source.for property in the db if db is under replication
> -----------------------------------------------------------------
>
>                 Key: HIVE-24674
>                 URL: https://issues.apache.org/jira/browse/HIVE-24674
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Add repl.source.for property in the database in case not already set, if the 
> database is under replication.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to