Skip to content

Comments

[only test] avoid_using_blocked_queue#26571

Closed
Mryange wants to merge 1 commit intoapache:masterfrom
Mryange:pipelineX-dep15
Closed

[only test] avoid_using_blocked_queue#26571
Mryange wants to merge 1 commit intoapache:masterfrom
Mryange:pipelineX-dep15

Conversation

@Mryange
Copy link
Contributor

@Mryange Mryange commented Nov 8, 2023

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

@Mryange Mryange marked this pull request as draft November 8, 2023 05:16
@Mryange
Copy link
Contributor Author

Mryange commented Nov 8, 2023

run buildall

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

return Status::OK();
}

void MultiCastDataStreamer::_set_ready_for_read(int sender_idx) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method '_set_ready_for_read' can be made const [readability-make-member-function-const]

Suggested change
void MultiCastDataStreamer::_set_ready_for_read(int sender_idx) {
void MultiCastDataStreamer::_set_ready_for_read(int sender_idx) const {

be/src/pipeline/exec/multi_cast_data_streamer.h:79:

-     void _set_ready_for_read(int sender_idx);
+     void _set_ready_for_read(int sender_idx) const;

dep->set_ready_for_read();
}

void MultiCastDataStreamer::_set_ready_for_read() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method '_set_ready_for_read' can be made const [readability-make-member-function-const]

Suggested change
void MultiCastDataStreamer::_set_ready_for_read() {
void MultiCastDataStreamer::_set_ready_for_read() const {

be/src/pipeline/exec/multi_cast_data_streamer.h:80:

-     void _set_ready_for_read();
+     void _set_ready_for_read() const;

}
}

void MultiCastDataStreamer::_block_reading(int sender_idx) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method '_block_reading' can be made const [readability-make-member-function-const]

Suggested change
void MultiCastDataStreamer::_block_reading(int sender_idx) {
void MultiCastDataStreamer::_block_reading(int sender_idx) const {

be/src/pipeline/exec/multi_cast_data_streamer.h:81:

-     void _block_reading(int sender_idx);
+     void _block_reading(int sender_idx) const;

dep->set_ready_for_read();
}
}
void set_dep_by_channel_id(Dependency* dep, int channel_id) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'set_dep_by_channel_id' can be made static [readability-convert-member-functions-to-static]

Suggested change
void set_dep_by_channel_id(Dependency* dep, int channel_id) {
static void set_dep_by_channel_id(Dependency* dep, int channel_id) {

source_dependencies[channel_id] = dep;
dep->block_reading();
}
void _set_ready_for_read(int channel_id) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method '_set_ready_for_read' can be made static [readability-convert-member-functions-to-static]

Suggested change
void _set_ready_for_read(int channel_id) {
static void _set_ready_for_read(int channel_id) {

// must be call after all pipeline task is finish to release resource
Status close(Status exec_status) override;

Dependency* read_blocked_dependency() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'read_blocked_dependency' can be made static [readability-convert-member-functions-to-static]

Suggested change
Dependency* read_blocked_dependency() {
static Dependency* read_blocked_dependency() {

std::string debug_string() override;

bool is_pending_finish() override {
Dependency* finish_blocked_dependency() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: method 'finish_blocked_dependency' can be made static [readability-convert-member-functions-to-static]

Suggested change
Dependency* finish_blocked_dependency() {
static Dependency* finish_blocked_dependency() {

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.00% (8401/22708)
Line Coverage: 29.43% (68002/231063)
Region Coverage: 28.11% (35157/125068)
Branch Coverage: 24.91% (17967/72134)
Coverage Report: http://coverage.selectdb-in.cc/coverage/027b02f9c5681fd8d6b5ab08553cd1009c85081b_027b02f9c5681fd8d6b5ab08553cd1009c85081b/report/index.html

@doris-robot
Copy link

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.71 seconds
stream load tsv: 560 seconds loaded 74807831229 Bytes, about 127 MB/s
stream load json: 20 seconds loaded 2358488459 Bytes, about 112 MB/s
stream load orc: 65 seconds loaded 1101869774 Bytes, about 16 MB/s
stream load parquet: 32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select: 28.8 seconds inserted 10000000 Rows, about 347K ops/s
storage size: 17162431912 Bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants