hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sankar Hariappan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-16813) Incremental REPL LOAD should load the events in the same sequence as it is dumped.
Date Fri, 02 Jun 2017 12:05:04 GMT

     [ https://issues.apache.org/jira/browse/HIVE-16813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sankar Hariappan updated HIVE-16813:
------------------------------------
    Description: 
Currently, incremental REPL DUMP use $dumpdir/<eventID> to dump the metadata and data
files corresponding to the event. The event is dumped in the same sequence in which it was
generated.

Now, REPL LOAD, lists the directories inside $dumpdir using listStatus and sort it using compareTo
algorithm of FileStatus class which doesn't check the length before sorting it alphabetically.
Due to this, the event-100 is processed before event-99 and hence making the replica database
unreliable.

Need to use a customized compareTo algorithm to sort the FileStatus.

  was:
Currently, incremental REPL DUMP use $dumpdir/<eventID> to dump the metadata and data
files corresponding to the event. The event is dumped in the same sequence in which it was
generated.

Now, REPL LOAD, lists the directories inside $dumpdir using listStatus and sort it using compareTo
algorithm of FileStatus class which doesn't check the length before sorting it alphabetically.
Due to this, the event-100 is processed before event-99 and hence making the replica database
unreliable.

Need to use a customised compareTo algorithm to sort the FileStatus.


> Incremental REPL LOAD should load the events in the same sequence as it is dumped.
> ----------------------------------------------------------------------------------
>
>                 Key: HIVE-16813
>                 URL: https://issues.apache.org/jira/browse/HIVE-16813
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive, repl
>    Affects Versions: 2.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: DR, replication
>
> Currently, incremental REPL DUMP use $dumpdir/<eventID> to dump the metadata and
data files corresponding to the event. The event is dumped in the same sequence in which it
was generated.
> Now, REPL LOAD, lists the directories inside $dumpdir using listStatus and sort it using
compareTo algorithm of FileStatus class which doesn't check the length before sorting it alphabetically.
> Due to this, the event-100 is processed before event-99 and hence making the replica
database unreliable.
> Need to use a customized compareTo algorithm to sort the FileStatus.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message