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

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

                Author: ASF GitHub Bot
            Created on: 18/Jan/23 06:47
            Start Date: 18/Jan/23 06:47
    Worklog Time Spent: 10m 
      Work Description: pudidic commented on code in PR #3953:
URL: https://github.com/apache/hive/pull/3953#discussion_r1073149035


##########
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadTask.java:
##########
@@ -721,6 +721,10 @@ private int executeIncrementalLoad(long loadStartTime) 
throws Exception {
     Database targetDb = getHive().getDatabase(work.dbNameToLoadIn);
     Map<String, String> props = new HashMap<>();
 
+    if(targetDb == null) {

Review Comment:
   Please follow the coding convention; have a whitespace after if.





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

    Worklog Id:     (was: 839837)
    Time Spent: 50m  (was: 40m)

> Fix NPE during Optimised Bootstrap when db is dropped
> -----------------------------------------------------
>
>                 Key: HIVE-26943
>                 URL: https://issues.apache.org/jira/browse/HIVE-26943
>             Project: Hive
>          Issue Type: Task
>            Reporter: Shreenidhi
>            Assignee: Shreenidhi
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Consider the steps:
> 1. Current replication is from A (source) -> B(target)
> 2. Failover is complete
> so now           A (target) <- B(source)
> 3. Suppose db at A is dropped before reverse replication.
> 4. Now when reverse replication triggers optimised bootstrap it will throw NPE
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to