File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/impl Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,10 @@ private Get createGetForIncrBackupTableSet(String backupRoot) throws IOException
12471247 * @return put operation
12481248 */
12491249 private Put createPutForIncrBackupTableSet (Set <TableName > tables , String backupRoot ) {
1250- Put put = new Put (rowkey (INCR_BACKUP_SET , backupRoot ));
1250+ // added 1ms to prevent LostUpdate problem in case when deleteIncrementalBackupTableSet()
1251+ // executed very fast
1252+ long ts = EnvironmentEdgeManager .currentTime () + 1 ;
1253+ Put put = new Put (rowkey (INCR_BACKUP_SET , backupRoot ), ts );
12511254 for (TableName table : tables ) {
12521255 put .addColumn (BackupSystemTable .META_FAMILY , Bytes .toBytes (table .getNameAsString ()),
12531256 EMPTY_VALUE );
You can’t perform that action at this time.
0 commit comments