-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement](Log) Reduce usage of log fatal(PART I) #42344
Changes from 10 commits
3453eb0
ae66093
afeb18b
9b0339c
aaed254
d622461
9290081
e8333c3
8dfe7b6
b5fa54b
16ac0f6
da92d38
1041b96
8894e7d
218eb13
a6ab2f4
81817bd
e833ca3
c9280d4
09e7754
f779030
86df024
d9399f2
86fbcdb
ff496eb
756afe5
3c8028f
c244ccc
4f7a740
fdb6897
cc18a04
f704fb1
da97163
e5dfd18
ac1d12e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -331,7 +331,7 @@ class InListPredicateBase : public ColumnPredicate { | |
} | ||
return false; | ||
} else { | ||
LOG(FATAL) << "Bloom filter is not supported by predicate type."; | ||
throw Exception(Status::FatalError("Bloom filter is not supported by predicate type.")); | ||
return true; | ||
} | ||
} | ||
|
@@ -431,8 +431,8 @@ class InListPredicateBase : public ColumnPredicate { | |
} | ||
} | ||
} else { | ||
LOG(FATAL) << "column_dictionary must use StringRef predicate."; | ||
__builtin_unreachable(); | ||
throw Exception( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use |
||
Status::FatalError("column_dictionary must use StringRef predicate.")); | ||
} | ||
} else { | ||
auto& pred_col = | ||
|
@@ -495,8 +495,8 @@ class InListPredicateBase : public ColumnPredicate { | |
} | ||
} | ||
} else { | ||
LOG(FATAL) << "column_dictionary must use StringRef predicate."; | ||
__builtin_unreachable(); | ||
throw Exception( | ||
Status::FatalError("column_dictionary must use StringRef predicate.")); | ||
} | ||
} else { | ||
auto* nested_col_ptr = vectorized::check_and_get_column< | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,8 +109,8 @@ class KeyCoderTraits< | |
case 16: | ||
return BigEndian::FromHost128(val); | ||
default: | ||
LOG(FATAL) << "Invalid type to big endian, type=" << int(field_type) | ||
<< ", size=" << sizeof(UnsignedCppType); | ||
throw Exception(Status::FatalError("Invalid type to big endian, type={}, size={}", | ||
int(field_type), sizeof(UnsignedCppType))); | ||
} | ||
} | ||
} | ||
|
@@ -300,7 +300,7 @@ class KeyCoderTraits<FieldType::OLAP_FIELD_TYPE_CHAR> { | |
} | ||
|
||
static Status decode_ascending(Slice* encoded_key, size_t index_size, uint8_t* cell_ptr) { | ||
LOG(FATAL) << "decode_ascending is not implemented"; | ||
throw Exception(Status::FatalError("decode_ascending is not implemented")); | ||
return Status::OK(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove the |
||
} | ||
}; | ||
|
@@ -320,7 +320,7 @@ class KeyCoderTraits<FieldType::OLAP_FIELD_TYPE_VARCHAR> { | |
} | ||
|
||
static Status decode_ascending(Slice* encoded_key, size_t index_size, uint8_t* cell_ptr) { | ||
LOG(FATAL) << "decode_ascending is not implemented"; | ||
throw Exception(Status::FatalError("decode_ascending is not implemented")); | ||
return Status::OK(); | ||
} | ||
}; | ||
|
@@ -340,7 +340,7 @@ class KeyCoderTraits<FieldType::OLAP_FIELD_TYPE_STRING> { | |
} | ||
|
||
static Status decode_ascending(Slice* encoded_key, size_t index_size, uint8_t* cell_ptr) { | ||
LOG(FATAL) << "decode_ascending is not implemented"; | ||
throw Exception(Status::FatalError("decode_ascending is not implemented")); | ||
return Status::OK(); | ||
} | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
|
||
#include "bvar/bvar.h" | ||
#include "common/config.h" | ||
#include "common/exception.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove this |
||
#include "olap/memtable_memory_limiter.h" | ||
#include "olap/olap_define.h" | ||
#include "olap/tablet_schema.h" | ||
|
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.
remove this line