It's always going to be a *little* racy because the "most recent update" may not be the aggregate of *all* the latest updates - but at least we have the signal.
The problem is POST now updates X-Put-Timestamp - but not X-Timestamp which remains still the time the container was created:
so then X-Newest (which *totally* works with containers) will make requests to all container db's and then always return whichever one was created most recently (instead of whichever one was *updated* most recently)
I think this *almost* got fixed when Kota fixed POST to update PUT timestamp - https:/ /review. openstack. org/#/c/ 198632/
It's always going to be a *little* racy because the "most recent update" may not be the aggregate of *all* the latest updates - but at least we have the signal.
The problem is POST now updates X-Put-Timestamp - but not X-Timestamp which remains still the time the container was created:
ubuntu@saio:~$ curl http:// localhost: 6041/sdb4/ 450/AUTH_ test/test -v AUTH_test/ test HTTP/1.1 Timestamp: 1501110795.41336 Object- Count: 1 Put-Timestamp: 1501112155.68218 Meta-Color: eal Delete- Timestamp: 0000000000.00000 Bytes-Used: 1172 Storage- Policy- Index: 0 Status- Changed- At: 1501110795.39889
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 6041 (#0)
> GET /sdb4/450/
> Host: localhost:6041
> User-Agent: curl/7.47.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 13
< X-Backend-
< X-Container-
< X-Put-Timestamp: 1501112155.68218
< X-Backend-
< X-Container-
< X-Backend-
< X-Container-
< X-Timestamp: 1501110795.41336
< X-Backend-
< Content-Type: text/plain; charset=utf-8
< X-Backend-
< Date: Wed, 26 Jul 2017 23:38:20 GMT
<
pete_test.py
* Connection #0 to host localhost left intact
so then X-Newest (which *totally* works with containers) will make requests to all container db's and then always return whichever one was created most recently (instead of whichever one was *updated* most recently)