Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'update_delete_bitmap' has cognitive complexity of 58 (threshold 50) [readability-function-cognitive-complexity]
Additional context
be/src/olap/base_tablet.cpp:1127: +1, including nesting penalty of 0, nesting level increased to 1
if (txn_info->partial_update_info && txn_info->partial_update_info->is_partial_update) { ^be/src/olap/base_tablet.cpp:1127: +1
if (txn_info->partial_update_info && txn_info->partial_update_info->is_partial_update) { ^be/src/olap/base_tablet.cpp:1128: nesting level increased to 2
be/src/common/status.h:694: expanded from macro 'DORIS_TRY'
({ \ ^be/src/olap/base_tablet.cpp:1128: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:697: expanded from macro 'DORIS_TRY'
be/src/olap/base_tablet.cpp:1140: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(std::dynamic_pointer_cast<BetaRowset>(rowset)->load_segments(&segments)); ^be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1140: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(std::dynamic_pointer_cast<BetaRowset>(rowset)->load_segments(&segments)); ^be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1146: +1, including nesting penalty of 0, nesting level increased to 1
be/src/olap/base_tablet.cpp:1151: +1, including nesting penalty of 0, nesting level increased to 1
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1151: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1170: +1, including nesting penalty of 0, nesting level increased to 1
be/src/olap/base_tablet.cpp:1171: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(calc_delete_bitmap(self, rowset, segments, specified_rowsets, delete_bitmap, ^be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1171: +3, including nesting penalty of 2, nesting level increased to 3
RETURN_IF_ERROR(calc_delete_bitmap(self, rowset, segments, specified_rowsets, delete_bitmap, ^be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1174: +1, nesting level increased to 1
} else { ^be/src/olap/base_tablet.cpp:1176: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(calc_delete_bitmap(self, rowset, segments, specified_rowsets, delete_bitmap, ^be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1176: +3, including nesting penalty of 2, nesting level increased to 3
RETURN_IF_ERROR(calc_delete_bitmap(self, rowset, segments, specified_rowsets, delete_bitmap, ^be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1179: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1179: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1183: +1, including nesting penalty of 0, nesting level increased to 1
be/src/olap/base_tablet.cpp:1185: +1, nesting level increased to 1
} else { ^be/src/olap/base_tablet.cpp:1193: nesting level increased to 1
be/src/olap/base_tablet.cpp:1200: +1, including nesting penalty of 0, nesting level increased to 1
be/src/olap/base_tablet.cpp:1200: +1
be/src/olap/base_tablet.cpp:1205: +2, including nesting penalty of 1, nesting level increased to 2
if (!st.ok()) { ^be/src/olap/base_tablet.cpp:1210: +1, including nesting penalty of 0, nesting level increased to 1
if (transient_rs_writer) { ^be/src/olap/base_tablet.cpp:1211: +2, including nesting penalty of 1, nesting level increased to 2
be/src/util/debug_points.h:36: expanded from macro 'DBUG_EXECUTE_IF'
be/src/olap/base_tablet.cpp:1211: +3, including nesting penalty of 2, nesting level increased to 3
be/src/util/debug_points.h:38: expanded from macro 'DBUG_EXECUTE_IF'
if (dp) { \ ^be/src/olap/base_tablet.cpp:1212: +4, including nesting penalty of 3, nesting level increased to 4
be/src/olap/base_tablet.cpp:1220: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1220: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1222: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1222: +3, including nesting penalty of 2, nesting level increased to 3
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'
be/src/olap/base_tablet.cpp:1231: +1, including nesting penalty of 0, nesting level increased to 1
be/src/common/status.h:612: expanded from macro 'RETURN_IF_ERROR'
do { \ ^be/src/olap/base_tablet.cpp:1231: +2, including nesting penalty of 1, nesting level increased to 2
be/src/common/status.h:614: expanded from macro 'RETURN_IF_ERROR'