Yuqi Du has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/19519 )

Change subject: [LBM] append CREATE/DELETE records in batch to metadata
......................................................................


Patch Set 10:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/19519/10/src/kudu/fs/log_block_manager.cc
File src/kudu/fs/log_block_manager.cc:

http://gerrit.cloudera.org:8080/#/c/19519/10/src/kudu/fs/log_block_manager.cc@2726
PS10, Line 2726:     for (const auto& lb : clbs) {
               :       VLOG(3) << "Deleting block " << lb->block_id();
               :       // TODO(yingchun): BlockDeleted in batch
               :       container->BlockDeleted(lb);
               :     }
It seems the TODO need to be done now.

Because the 'container' has removed 'lb', but at L2736 may append some lb to 
metadata file failed. (So as left side, I think it may be incorrect). It's 
possible not consistency between L2726-L2730 and L2750.

It seems better that in function 'AppendMetadataForDeleteRecords', append 
logblock to metadata success and then execute 'container->BlockDeleted(lb);'.



--
To view, visit http://gerrit.cloudera.org:8080/19519
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie24adab3b1dbbea55108a1f525093136fcf5a726
Gerrit-Change-Number: 19519
Gerrit-PatchSet: 10
Gerrit-Owner: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Ashwani Raina <[email protected]>
Gerrit-Reviewer: KeDeng <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Reviewer: Wang Xixu <[email protected]>
Gerrit-Reviewer: Yifan Zhang <[email protected]>
Gerrit-Reviewer: Yingchun Lai <[email protected]>
Gerrit-Reviewer: Yuqi Du <[email protected]>
Gerrit-Comment-Date: Fri, 03 Mar 2023 06:58:20 +0000
Gerrit-HasComments: Yes

Reply via email to