[
https://issues.apache.org/jira/browse/TS-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754852#comment-13754852
]
ASF subversion and git services commented on TS-2156:
-----------------------------------------------------
Commit a75ebb6372c7e64c415d6fb29d8d24038ee79525 in branch refs/heads/5.0.x from
[~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=a75ebb6 ]
Merge branch 'master' into 5.0.x
* master: (53 commits)
Moved the two 4.0.1 changes that we respun build for.
Added TS-2163
TS-2163 Remove obsolete WDA and ACC alarms feature
ci: move jenkins jobs to the jenkins subdirectory
ci: toggle --enable-wccp correctly for different platforms
Doc: Add lifecycle hook documentation.
TS-2145: Add metrics for log collation
fixed some spelling mistakes in the api header
TS-2162: Auto-created collation LogObject would be misused by access log
Some indentation and printf cleanup
TS-2161: TSHttpTxnHookAdd memory Leak
TS-2156: Fix stats trap in different type of threads
doc: move cache glossary into the main glossary
TS-2160: Update CHANGES.
TS-2160: Remove ats_is_ip_nonroutable.
TS-2160: Remove use of ats_is_ip_nonroutable and replace with
ats_is_ip_linklocal and ats_is_ip_private.
TS-2160: Add ats_is_ip_private and ats_is_ip_linklocal functions.
TS-2154: Lua plugin asserts traffic_server on startup
ci: make git scm polling less aggresive
ci: flip the 3.4.x branch to 4.0.x
...
> Stats trap in threads created by spawn_event_threads() and spawn_thread()
> -------------------------------------------------------------------------
>
> Key: TS-2156
> URL: https://issues.apache.org/jira/browse/TS-2156
> Project: Traffic Server
> Issue Type: Improvement
> Components: Stats
> Reporter: Yunkai Zhang
> Assignee: Yunkai Zhang
> Fix For: 4.1.0
>
> Attachments:
> 0001-TS-2156-Fix-stats-trap-in-different-type-of-threads.patch,
> 0001-TS-2156-Fix-stats-trap-in-different-type-of-threads.V2.patch
>
>
> There are two ways to create threads in ATS:
> 1) By EventProcessor::spawn_event_threads(), such as ET_NET threads.
> 2) By EventProcessor::spawn_thread(), such as flush thread.
> But I found that we can't stats the same things across these two type of
> threads.
> For example, I used the following statement in _checkout_write() to do stats
> before add to flusher queue:
> {code}
> LogBuffer *
> LogObject::_checkout_write(size_t * write_offset, size_t bytes_needed) {
> ...
> LOG_SUM_DYN_STAT(log_stat_bytes_add_to_flush_queue,
> buffer->header()->byte_count);
> m_buffer_manager[idx].add_to_flush_queue(buffer);
> Log::preproc_notify[idx].signal();
> ...
> }
> {code}
> As _checkout_write() function will be executed at ET_NET threads and flush
> thread, the stats value will be incomplete -- the value collected in flush
> thread will not be merged into the final result.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira