aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Nathaniel Manista <nathaniel@google.com>2015-02-24 20:19:02 +0000
committerGravatar Nathaniel Manista <nathaniel@google.com>2015-02-24 20:19:02 +0000
commitf4e3f3f8d6d816bab51c576e680c65faeaece30e (patch)
tree5157093d5e88a0e98bfd93c16fe0e07a3e13babb /src
parenteeef8cd52b34282c89d1eadf7daff7bf401ac9b0 (diff)
Avoid CANCELLATION ticket kind for back-to-front tickets.
It's not (yet, see issue 752) allowed and code at the higher level doesn't know how to deal with it.
Diffstat (limited to 'src')
-rw-r--r--src/python/src/grpc/_adapter/rear.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/src/grpc/_adapter/rear.py b/src/python/src/grpc/_adapter/rear.py
index d16fbeecf7..94ff66ffda 100644
--- a/src/python/src/grpc/_adapter/rear.py
+++ b/src/python/src/grpc/_adapter/rear.py
@@ -170,7 +170,8 @@ class RearLink(ticket_interfaces.RearLink, activated.Activated):
if event.status.code is _low.Code.OK:
category = tickets.Kind.COMPLETION
elif event.status.code is _low.Code.CANCELLED:
- category = tickets.Kind.CANCELLATION
+ # TODO(issue 752): Use a CANCELLATION ticket kind here.
+ category = tickets.Kind.SERVICER_FAILURE
elif event.status.code is _low.Code.EXPIRED:
category = tickets.Kind.EXPIRATION
else: