apache / apache/trafficserver

Immediately commit the last data fragments

Open
#5,523 3 comments 0 reactions 0 assignees View on GitHub
Cache Performance Stale
Dominant language
C++
Stars
2k
Forks
874
Avg merge
6d 15h
Merged PRs (30d)
46

Description

Sometimes, the last fragments are written after user call `do_io_close`. This means the writing of the last fragments might be pending when user delays `do_io_close`. Then the `read_while_write` keep a loop to wait for this fragments. This dose great harm for performance .

But if ats writes the last fragment immediately, the RWW reader can found the last fragments and terminate itself entirely without any pending .

https://github.com/apache/trafficserver/blob/6c51b258f90163abc667c9ec2036af76940fbdac/iocore/cache/CacheWrite.cc#L1305-L1312

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.