[
https://issues.apache.org/jira/browse/HIVE-20152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542882#comment-16542882
]
ASF GitHub Bot commented on HIVE-20152:
---------------------------------------
GitHub user anishek opened a pull request:
https://github.com/apache/hive/pull/399
HIVE-20152: reset db state, when repl dump fails, so rename table can be
done
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/anishek/hive HIVE-20152
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/hive/pull/399.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #399
----
commit 780ebaa59627ba4954c4e72fa7e60dad2089a771
Author: Anishek Agarwal <anishek@...>
Date: 2018-07-13T09:53:09Z
HIVE-20152: reset db state, when repl dump fails, so rename table can be
done
----
> reset db state, when repl dump fails, so rename table can be done
> -----------------------------------------------------------------
>
> Key: HIVE-20152
> URL: https://issues.apache.org/jira/browse/HIVE-20152
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2
> Affects Versions: 3.0.0
> Reporter: anishek
> Assignee: mahesh kumar behera
> Priority: Critical
> Labels: pull-request-available
> Attachments: HIVE-20152.1.patch
>
>
> If a repl dump command is run and it fails for some reason while doing table
> level dumps, the state set on the db parameters is not reset and hence no
> table / partition renames can be done.
> the property to be reset is prefixed with key {code}bootstrap.dump.state
> {code}
> and it should be unset. meanwhile the workaround is
> {code}
> describe database extended [db_name];
> {code}
> assuming property is 'bootstrap.dump.state.something'
> {code}
> alter  database [db_name] set dbproperties
> ('bootstrap.dump.state.something'='idle');"
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)