Skip to content

[bugfix](core) close method should check if the pointer is nullptr#34067

Merged
yiguolei merged 1 commit intoapache:masterfrom
yiguolei:fix_core1
Apr 24, 2024
Merged

[bugfix](core) close method should check if the pointer is nullptr#34067
yiguolei merged 1 commit intoapache:masterfrom
yiguolei:fix_core1

Conversation

@yiguolei
Copy link
Contributor

Proposed changes

The ptr is inited at open method, but

  1. the open method maybe not called.
  2. the open method is called, but it return error before init the pointer.

0# doris::signal::(anonymous namespace)::FailureSignalHandler(int, siginfo_t*, void*) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/common/signal_handler.h:421
1# os::Linux::chained_handler(int, siginfo*, void*) in /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
2# JVM_handle_linux_signal in /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
3# signalHandler(int, siginfo*, void*) in /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
4# 0x00007FC5DCDDC090 in /lib/x86_64-linux-gnu/libc.so.6
5# doris::pipeline::ExchangeSinkLocalState::close(doris::RuntimeState*, doris::Status) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/pipeline/exec/exchange_sink_operator.cpp:690
6# doris::pipeline::DataSinkOperatorXBase::close(doris::RuntimeState*, doris::Status) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/pipeline/pipeline_x/operator.h:657
7# doris::pipeline::PipelineXTask::close(doris::Status) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/pipeline/pipeline_x/pipeline_x_task.cpp:373
8# doris::pipeline::_close_task(doris::pipeline::PipelineTask*, doris::pipeline::PipelineTaskState, doris::Status) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/pipeline/task_scheduler.cpp:242
9# doris::pipeline::TaskScheduler::_do_work(unsigned long) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/pipeline/task_scheduler.cpp:300
10# doris::ThreadPool::dispatch_thread() in /mnt/hdd01/ci/branch21-deploy/be/lib/doris_be
11# doris::Thread::supervise_thread(void*) at /home/zcp/repo_center/doris_branch-2.1/doris/be/src/util/thread.cpp:499
12# start_thread at /build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:478
13# __clone at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

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...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@yiguolei
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 35.19% (8916/25334)
Line Coverage: 26.97% (73334/271910)
Region Coverage: 26.15% (37883/144877)
Branch Coverage: 22.97% (19289/83962)
Coverage Report: http://coverage.selectdb-in.cc/coverage/4228e4a1beb206f36edfb4c5095f744d54bb1ffb_4228e4a1beb206f36edfb4c5095f744d54bb1ffb/report/index.html

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Apr 24, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@wangbo wangbo left a comment

Choose a reason for hiding this comment

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

LGTM

@yiguolei yiguolei merged commit ce4ca1e into apache:master Apr 24, 2024
yiguolei added a commit that referenced this pull request Apr 24, 2024
yiguolei added a commit that referenced this pull request Apr 24, 2024
dataroaring pushed a commit that referenced this pull request Apr 24, 2024
yiguolei added a commit that referenced this pull request Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants