[
https://issues.apache.org/jira/browse/TS-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ethan Lai updated TS-2397:
--------------------------
Attachment: http-hooks-and-transactions.en.rst.patch
http_txn_state_diagram.png
The order of "cache lookup", "DNS", and "TS_HTTP_CACHE_LOOKUP_COMPLETE_HOOK" is
still incorrect.
Patch it according to my debug log.
Miss:
[1] State Transition: STATE_UNDEFINED -> API_READ_REQUEST_HDR
[1] State Transition: API_READ_REQUEST_HDR -> HTTP_API_PRE_REMAP
[1] State Transition: HTTP_API_PRE_REMAP -> HTTP_REMAP_REQUEST
[1] State Transition: HTTP_REMAP_REQUEST -> HTTP_API_POST_REMAP
[1] State Transition: HTTP_API_POST_REMAP -> CACHE_LOOKUP
[1] State Transition: CACHE_LOOKUP -> DNS_LOOKUP
[1] State Transition: DNS_LOOKUP -> API_OS_DNS
[1] State Transition: API_OS_DNS -> CACHE_ISSUE_WRITE
[1] State Transition: CACHE_ISSUE_WRITE -> ORIGIN_SERVER_OPEN
[1] State Transition: ORIGIN_SERVER_OPEN -> SERVER_READ
Stale:
[3] State Transition: STATE_UNDEFINED -> API_READ_REQUEST_HDR
[3] State Transition: API_READ_REQUEST_HDR -> HTTP_API_PRE_REMAP
[3] State Transition: HTTP_API_PRE_REMAP -> HTTP_REMAP_REQUEST
[3] State Transition: HTTP_REMAP_REQUEST -> HTTP_API_POST_REMAP
[3] State Transition: HTTP_API_POST_REMAP -> API_CACHE_LOOKUP_COMPLETE
[3] State Transition: API_CACHE_LOOKUP_COMPLETE -> DNS_LOOKUP
[3] State Transition: DNS_LOOKUP -> API_OS_DNS
[3] State Transition: API_OS_DNS -> ORIGIN_SERVER_OPEN
[3] State Transition: ORIGIN_SERVER_OPEN -> SERVER_READ
> Transaction State diagram is out-dated
> --------------------------------------
>
> Key: TS-2397
> URL: https://issues.apache.org/jira/browse/TS-2397
> Project: Traffic Server
> Issue Type: Bug
> Components: Documentation
> Reporter: Igor Galić
> Attachments: http-hooks-and-transactions.en.rst.patch,
> http-hooks-and-transactions.en.rst.patch,
> http-hooks-and-transactions_adding-hooks.en.rst.patch, http_state.png,
> http_txn_state_diagram.png
>
>
> as reported by [~yzlai] to users@
> {quote}
> I've found that the State transition in HTTP Transaction State Diagram may be
> incorrect.
> Per my http.* debug log,
> {code}
> (http) [0] State Transition: STATE_UNDEFINED -> API_READ_REQUEST_HDR
> (http) [0] State Transition: API_READ_REQUEST_HDR -> HTTP_API_PRE_REMAP
> (http) [0] State Transition: HTTP_API_PRE_REMAP -> HTTP_REMAP_REQUEST
> (http) [0] State Transition: HTTP_REMAP_REQUEST -> HTTP_API_POST_REMAP
> (http) [0] State Transition: HTTP_API_POST_REMAP -> CACHE_LOOKUP
> (http) [0] State Transition: CACHE_LOOKUP -> DNS_LOOKUP
> (http) [0] State Transition: DNS_LOOKUP -> API_OS_DNS
> {code}
> {{CACHE_LOOKUP}} is just after {{POST_REMAP}} and is ahead of {{DNS_LOOKUP}}.
> But in the State Diagram, {{CACHE_LOOKUP}} is after {{OS_DNS_HOOK}}.
> I'm using ats-4.0.1, it would be great if some body can correct the diagram.
> :)
> Many Thanks!
> -Ethan
> {quote}
> It would be really awesome if someone could update that. It would be even
> more awesome if that update it such that it's generated from "code", see
> http://www.opsschool.org/en/latest/meta/conventions.html and
> its code:
> https://raw.github.com/opsschool/curriculum/master/meta/conventions.rst as an
> example.
--
This message was sent by Atlassian JIRA
(v6.1#6144)