Skip to content
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

msg/async: harden error logic handle #9781

Merged
merged 5 commits into from Jun 29, 2016
Merged

Conversation

yuyuyu101
Copy link
Member

This pr don't fix any existing bug. Only fill up the potential error handle leak.

@yuyuyu101
Copy link
Member Author

passed http://pulpito.ceph.com/haomai-2016-06-21_12:24:39-rados-wip-haomai-testing-distro-basic-smithi/

one test issue (fix later)
one vargind issue(rocksdb)
others all network connection errors(including dead jobs)

@yuyuyu101 yuyuyu101 force-pushed the wip-epoll branch 4 times, most recently from eab68c0 to 2f4b152 Compare June 28, 2016 14:27
Signed-off-by: Haomai Wang <haomai@xsky.com>
The original logic is from
ceph@ba140b5
I think it doesn't make sense in detail errno case.

Signed-off-by: Haomai Wang <haomai@xsky.com>
It's rare happen in real env, because each socket has enough write buffer
to store a little handshake info.

Just harden the current codes

Signed-off-by: Haomai Wang <haomai@xsky.com>
Partial revert 84b9088
Signed-off-by: Haomai Wang <haomai@xsky.com>
…own dq

1. ensure stop accepter before shutdown dispatcherqueue
2. ensure we don't generate new item after dispatcher queue shutdown

Signed-off-by: Haomai Wang <haomai@xsky.com>
@yuyuyu101
Copy link
Member Author

yuyuyu101 commented Jun 29, 2016

@yuyuyu101 yuyuyu101 merged commit 4c26fae into ceph:master Jun 29, 2016
@yuyuyu101 yuyuyu101 deleted the wip-epoll branch June 29, 2016 04:08
@xiexingguo
Copy link
Member

@yuyuyu101 Haomai, it seems this pr introduces a compiling error, check:

https://jenkins.ceph.com/job/ceph-pull-requests/8173/console

@yuyuyu101
Copy link
Member Author

@xiexingguo yes, it's false rebase

@tchaikov
Copy link
Contributor

@yuyuyu101 master is broken. mind taking a look?

CC table/plain_table_index.o
/srv/autobuild-ceph/gitbuilder.git/build/src/msg/async/AsyncMessenger.cc: In member function ‘virtual void AsyncMessenger::mark_down(const entity_addr_t&)’:
error: /srv/autobuild-ceph/gitbuilder.git/build/src/msg/async/AsyncMessenger.cc:810:13: no matching function for call to ‘AsyncConnection::stop()’
p->stop();
^
/srv/autobuild-ceph/gitbuilder.git/build/src/msg/async/AsyncMessenger.cc:810:13: note: candidate is:

see http://gitbuilder.sepia.ceph.com/gitbuilder-ceph-tarball-trusty-amd64-cmake/log.cgi?log=060b4920129e80ee1a80c33c71777d2d877dd0fc

@yuyuyu101
Copy link
Member Author

@tchaikov yes, sorry for this #9992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants