Skip to content

Conversation

@bneradt
Copy link

@bneradt bneradt commented Jun 16, 2022

The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.
@bneradt bneradt force-pushed the hostdb-restructure-timing-updates branch from 28ce1a7 to 92aa2ee Compare June 17, 2022 16:57
@bneradt bneradt requested a review from SolidWallOfCode as a code owner June 17, 2022 16:57
@SolidWallOfCode SolidWallOfCode merged commit 3cec87a into SolidWallOfCode:hostdb-restructure Jun 22, 2022
@bneradt bneradt deleted the hostdb-restructure-timing-updates branch June 23, 2022 15:24
SolidWallOfCode pushed a commit that referenced this pull request Jun 23, 2022
The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

Co-authored-by: bneradt <bneradt@yahooinc.com>
SolidWallOfCode pushed a commit that referenced this pull request Jun 23, 2022
The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

Co-authored-by: bneradt <bneradt@yahooinc.com>
SolidWallOfCode pushed a commit that referenced this pull request Jul 8, 2022
The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

Co-authored-by: bneradt <bneradt@yahooinc.com>
SolidWallOfCode pushed a commit that referenced this pull request Jul 8, 2022
The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

Co-authored-by: bneradt <bneradt@yahooinc.com>
SolidWallOfCode added a commit that referenced this pull request Aug 21, 2022
* Rebase checkpoint for HostDB restructure.

* Post rebase fixup.

* Fix PreWarm

* Fix nexthop test.

* Timing fix for HostDB restructure (#34)

The default duration of time_since_epoch() is
std::chrono::high_resolution_clock::duration, which will not generally
be seconds. hostDB.refcountcache->put expects the epoch count to be a
number of seconds. This explicitly casts to seconds so we get that
expected value.

This also makes some other std::chrono time updates.

Co-authored-by: bneradt <bneradt@yahooinc.com>

* Debug_bw updates. And clang-format fix. (#35)

* Debug_bw updates. And clang-format fix.

* If HostDB returns only failed parents, try serving from cache.

Before this change, the parent cache logic would give up if it couldn't
resolve the origin name for a request. This will attempt to retrieve a
cached response if the resolution fails.

Co-authored-by: Brian Neradt <brian.neradt@verizonmedia.com>
Co-authored-by: bneradt <bneradt@yahooinc.com>
Co-authored-by: Brian Neradt <brian.neradt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants