Commit 3dfc78e
fix(recordchecker): potential precision issues + better logs (google#5135)
According to docs, [GCS Custom-Time is millisecond
precision](https://docs.cloud.google.com/storage/docs/metadata#custom-time),
[Datastore is
microsecond](https://docs.cloud.google.com/datastore/docs/reference/data/rest/Shared.Types/Value#:~:text=A%20timestamp%20value.%20When%20stored%20in%20the%20Datastore%2C%20precise%20only%20to%20microseconds%3B%20any%20additional%20precision%20is%20rounded%20down.)
(though Datastore now uses Firestore which is apparantly nanosecond
precision 🤷).
I'm wondering if this is causing issues with the recordchecker thinking
things are out of date, but I would expect this to loop infinitely if
that were the case (unless something else writing is
millisecond-precise?)
Added millisecond leeway and some better logging for this.1 parent 62f5012 commit 3dfc78e
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
297 | 299 | | |
298 | 300 | | |
299 | 301 | | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
303 | 305 | | |
304 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
305 | 314 | | |
306 | 315 | | |
307 | 316 | | |
| |||
0 commit comments