Skip to content

Remove backup poller from GRPC core#1577

Merged
nicolasnoble merged 208 commits intogrpc:masterfrom
ctiller:we-dont-need-no-backup
Jun 19, 2015
Merged

Remove backup poller from GRPC core#1577
nicolasnoble merged 208 commits intogrpc:masterfrom
ctiller:we-dont-need-no-backup

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented May 13, 2015

The backup poller thread was always a hack that we needed to keep things working as iomgr was introduced. This change removes it.

Fixes #51.
Fixes #52.
Fixes #1008.

ctiller and others added 30 commits May 6, 2015 16:45
…we-dont-need-no-backup

Conflicts:
	test/core/end2end/fixtures/chttp2_fullstack.c
	test/core/end2end/fixtures/chttp2_fullstack_uds_posix.c
	test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c
	test/core/end2end/fixtures/chttp2_socket_pair.c
	test/core/end2end/tests/cancel_after_accept.c
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

magic number 500. Turn into a #define'd constant?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Moved into a separate function, clarified necessary semantics, made it better

@dgquintas
Copy link
Copy Markdown
Contributor

I've reviewed up to tcp_client.h (exclusive). I'll continue tonight.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update docstring, especially regarding the role of "interested_parties"

@vjpai
Copy link
Copy Markdown
Contributor

vjpai commented Jun 18, 2015

With enough tests (about 3 failures out of 20000 total tests), I get a few for this branch that look like this:

D0618 10:07:56.987466586 26319 test_config.c:52] test slowdown: machine=1.000000 build=1.000000 total=1.000000
I0618 10:07:56.987597711 26319 cancel_after_invoke.c:57] test_cancel_after_invoke/chttp2/fullstack/cancel
D0618 10:07:56.988010297 26319 server.c:418] Waiting for all listeners to be destroyed (@ 0/1)
I0618 10:07:57.087693183 26319 cancel_after_invoke.c:57] test_cancel_after_invoke/chttp2/fullstack/deadline
E0618 10:08:02.088399565 26319 cancel_after_invoke.c:167] assertion failed: status == mode.expect_status
FAILED: bins/opt/chttp2_fullstack_with_poll_cancel_after_invoke_unsecure_test [ret=-6, pid=26319]

Conflicts:
	gRPC.podspec
	tools/doxygen/Doxyfile.core.internal
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need to call strdup inside a lock ? :-)

@nicolasnoble
Copy link
Copy Markdown
Contributor

Alright, I finished proof-reading this (my eyes are still a bit bleeding), and I didn't see anything out of whack.

@dgquintas
Copy link
Copy Markdown
Contributor

LGTM!

@jtattermusch
Copy link
Copy Markdown
Contributor

I ran some iterations of C# tests against this and it looks like the returned status codes for some of the calls are still getting mixed up from time to time.
In unknown method handler tests, I sometimes receive "Unkown" status instead of "Unimplemented"
and in some other tests, I sometimes get "cancelled" instead of "unknown".

I ran with -n 100 ( = 300 suites in total) and got 15 failures.

@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Jun 19, 2015

Jan: OK with this going in and a quick follow-up being written tomorrow?

On Thu, Jun 18, 2015, 6:04 PM Jan Tattermusch [email protected]
wrote:

I ran some iterations of C# tests against this and it looks like the
returned status codes for some of the calls are still getting mixed up from
time to time.
In unknown method handler tests, I sometimes receive "Unkown" status
instead of "Unimplemented"
and in some other tests, I sometimes get "cancelled" instead of "unknown".

I ran with -n 100 ( = 300 suites in total) and got 15 failures.


Reply to this email directly or view it on GitHub
#1577 (comment).

@ctiller
Copy link
Copy Markdown
Member Author

ctiller commented Jun 19, 2015

(Trying to avoid this growing further)

On Thu, Jun 18, 2015, 6:53 PM Craig Tiller [email protected] wrote:

Jan: OK with this going in and a quick follow-up being written tomorrow?

On Thu, Jun 18, 2015, 6:04 PM Jan Tattermusch [email protected]
wrote:

I ran some iterations of C# tests against this and it looks like the
returned status codes for some of the calls are still getting mixed up from
time to time.
In unknown method handler tests, I sometimes receive "Unkown" status
instead of "Unimplemented"
and in some other tests, I sometimes get "cancelled" instead of "unknown".

I ran with -n 100 ( = 300 suites in total) and got 15 failures.


Reply to this email directly or view it on GitHub
#1577 (comment).

@jtattermusch
Copy link
Copy Markdown
Contributor

Yep, sounds good.

@vjpai
Copy link
Copy Markdown
Contributor

vjpai commented Jun 19, 2015

After this gets merged, PTAL at #2105 . Thanks!

@nicolasnoble
Copy link
Copy Markdown
Contributor

Pulling the trigger!

nicolasnoble added a commit that referenced this pull request Jun 19, 2015
Remove backup poller from GRPC core
@nicolasnoble nicolasnoble merged commit f3fac56 into grpc:master Jun 19, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.