-
Notifications
You must be signed in to change notification settings - Fork 851
Slice plugin: self heal when asset etag/last-modified block mismatches #6691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f0882b0 to
791ad9d
Compare
c30687b to
789ce99
Compare
74ebe07 to
d886207
Compare
1d8aa17 to
f775374
Compare
randall
reviewed
May 14, 2020
Contributor
randall
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a handful of unimportant nits
Contributor
|
Is this something you need for 9.0.x? Or 9.1.x ? |
Contributor
Author
|
9.0.x would be nice. |
Contributor
Author
|
Update removed some of the error logs and also trimmed more off the autests (traffic_manager -> traffic_server) |
The very first slice is used as the reference slice to make recovery easiest. Recover asset where slices differ in content-length, etag, last-modified. autests included to cover basic functionality. Includes additions to include/ts/experimental.h: tsapi time_t TSMimeParseDate(char const *const value_str, int const value_len); tsapi TSReturnCode TSMimeFormatDate(time_t const value_time, char *const value_str, int *const value_len); These are derived from TSMimeHdrFieldValueDateSet/TSMimeHdrFieldValueDateGet.
Contributor
|
[approve ci autest] |
randall
approved these changes
Jun 4, 2020
traeak
added a commit
to traeak/trafficserver
that referenced
this pull request
Jan 19, 2021
…apache#6691) The very first slice is used as the reference slice to make recovery easiest. Recover asset where slices differ in content-length, etag, last-modified. autests included to cover basic functionality. Includes additions to include/ts/experimental.h: tsapi time_t TSMimeParseDate(char const *const value_str, int const value_len); tsapi TSReturnCode TSMimeFormatDate(time_t const value_time, char *const value_str, int *const value_len); These are derived from TSMimeHdrFieldValueDateSet/TSMimeHdrFieldValueDateGet. (cherry picked from commit 6dd31eb)
zwoop
pushed a commit
that referenced
this pull request
Jan 20, 2021
* Slice plugin: recover out of sync slices, better handling of non 206s (#6691) The very first slice is used as the reference slice to make recovery easiest. Recover asset where slices differ in content-length, etag, last-modified. autests included to cover basic functionality. Includes additions to include/ts/experimental.h: tsapi time_t TSMimeParseDate(char const *const value_str, int const value_len); tsapi TSReturnCode TSMimeFormatDate(time_t const value_time, char *const value_str, int *const value_len); These are derived from TSMimeHdrFieldValueDateSet/TSMimeHdrFieldValueDateGet. (cherry picked from commit 6dd31eb) * Make format specifier for time_t portable (#6860) (cherry picked from commit dde3897) * autest whitespace * slice: clean up of created 502 response header (#6919) Change header debug to use TSHttpHdrPrint. Co-authored-by: Brian Olsen <bolsen149@ipcdn-cache-58.cdnlab.comcast.net> (cherry picked from commit 9d23ab6) * default to throttling and subsequently simplify the transfer code (#7257) slice: default to throttling, 416 changes and bug fix for downstream closing. (cherry picked from commit 4462484) Co-authored-by: Masakazu Kitajo <maskit@apache.org>
Contributor
|
Backported to 9.0.1 in #7435 |
traeak
added a commit
to traeak/trafficserver
that referenced
this pull request
Apr 23, 2021
better handling of TSVIO calls and TSVConnAbort (apache#6239) Slice plugin: recover out of sync slices, better handling of non 206s (apache#6691) slice: clean up of created 502 response header (apache#6919) default to throttling and subsequently simplify the transfer code (apache#7257) (cherry picked from commit a622cbe) slice/handleFirstServerHeader: return sooner on requested range errors (apache#7486) (cherry picked from commit dfd4c7a)
ezelkow1
pushed a commit
that referenced
this pull request
Apr 27, 2021
…lt. (#7740) * slice port from master as of c8c9540 better handling of TSVIO calls and TSVConnAbort (#6239) Slice plugin: recover out of sync slices, better handling of non 206s (#6691) slice: clean up of created 502 response header (#6919) default to throttling and subsequently simplify the transfer code (#7257) (cherry picked from commit a622cbe) slice/handleFirstServerHeader: return sooner on requested range errors (#7486) (cherry picked from commit dfd4c7a) * cache_range_requests plugin optional support for special IMS header (#6217) (cherry picked from commit fbe11ae)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This tries to make the slice plugin smarter when origins do bad things to assets without changing their path including:
Process:
a. Match reference, continue to next slice
a. Mismatch reference, abort client, refetch reference slice (X-Crr-Ims header)