Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/19327 )
Change subject: [Tool] KUDU-3318 Compact container metadata file manually ...................................................................... Patch Set 13: (2 comments) http://gerrit.cloudera.org:8080/#/c/19327/13/src/kudu/fs/log_block_manager.cc File src/kudu/fs/log_block_manager.cc: http://gerrit.cloudera.org:8080/#/c/19327/13/src/kudu/fs/log_block_manager.cc@1388 PS13, Line 1388: CHECK_EQ(1, live_block_records->erase(block_id)); Is it possible to just return non-OK status here (e.g., Status::Corruption()) instead of crashing? Crashing is the last resort when it's not possible to consistengly recover from an error by any other means. http://gerrit.cloudera.org:8080/#/c/19327/13/src/kudu/tools/tool_action_fs.cc File src/kudu/tools/tool_action_fs.cc: http://gerrit.cloudera.org:8080/#/c/19327/13/src/kudu/tools/tool_action_fs.cc@1143 PS13, Line 1143: return Status::OK(); Should the return status be non-OK if an error has been encountered? -- To view, visit http://gerrit.cloudera.org:8080/19327 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Id61cb6c88d7a093a8448e2497639f5c5c094efa4 Gerrit-Change-Number: 19327 Gerrit-PatchSet: 13 Gerrit-Owner: Wang Xixu <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Attila Bukor <[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-Comment-Date: Fri, 01 Mar 2024 00:50:03 +0000 Gerrit-HasComments: Yes
