Jesse Hallam
17f2cd665d
MM-21672: KVCompareAndSet improvements ( #13858 )
...
* allow ExpireInSeconds < 0
Allow `ExpireInSeconds < 0` for use with `KVSetWithOptions`. While this has no practical use in reality, it's much easier to thoroughly unit tests the underlying functionality if we can match the semantics of CompareAndSet. Strictly speaking, this is a breaking change, but not relative to the advertised semantics. Anyway, it's also not entirely unreasonable to treat a negative `ExpireInSeconds` as having already expired vs. marking it as never expired.
* updated tests, to break apart
* honour expiry in CompareAndSet
* honour expiry in CompareAndDelete
* honour expiry in List
* fail unique constraint exception for SaveOrUpdate
A unique constraint error on a `SaveOrUpdate` should not be ignored: we did not save or update the requested value, as someone else managed to write the record first.
Note this is handled differently in `CompareAndSet`, where we correctly swallow the error and return `false` to indicate we did not successfully save the value.
* unexport DEFAULT_PLUGIN_KEY_FETCH_LIMIT
* s/InternalServerError/BadRequest/ for failed SaveOrUpdate
Co-authored-by: mattermod <mattermod@users.noreply.github.com >
2020-02-18 16:32:46 -04:00
..
2020-02-12 08:51:45 -05:00
2018-01-22 15:32:50 -06:00
2019-11-29 12:59:40 +01:00
2020-01-07 10:47:03 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-12-29 15:30:18 +01:00
2019-12-29 15:30:18 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-13 17:53:23 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-29 11:56:21 -05:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-05 11:31:39 +05:30
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-29 11:56:21 -05:00
2020-01-17 08:34:11 +01:00
2020-01-17 08:34:11 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-07 10:47:03 +01:00
2020-02-13 17:53:23 +01:00
2020-02-14 09:55:40 -08:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-14 16:21:54 -04:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-10 09:19:39 -08:00
2020-01-10 09:19:39 -08:00
2020-01-07 10:47:03 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-07 10:47:03 +01:00
2019-11-29 12:59:40 +01:00
2020-01-02 22:15:10 +01:00
2020-01-02 22:15:10 +01:00
2019-12-22 12:35:31 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-05 10:46:58 +01:00
2020-02-05 10:46:58 +01:00
2020-01-15 13:38:55 -05:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-12 21:15:34 +05:30
2019-07-18 15:05:53 -03:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-18 16:32:46 -04:00
2019-06-25 17:44:08 -04:00
2020-01-17 21:08:55 +01:00
2020-01-17 21:08:55 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-13 15:07:41 -05:00
2020-02-05 13:27:35 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-29 10:08:27 +01:00
2020-01-29 10:08:27 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-02-12 21:15:34 +05:30
2019-11-29 12:59:40 +01:00
2020-01-09 21:25:20 -08:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-12-17 12:12:38 +01:00
2019-11-29 12:59:40 +01:00
2019-12-22 12:35:31 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-12-03 18:56:39 +01:00
2020-02-13 17:53:23 +01:00
2020-01-29 12:56:59 +02:00
2019-11-29 12:59:40 +01:00
2020-01-07 10:47:03 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-07 10:47:03 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2019-11-29 12:59:40 +01:00
2020-01-13 12:50:01 -05:00
2019-11-29 12:59:40 +01:00
2020-02-12 08:51:45 -05:00
2020-01-14 14:39:05 -07:00
2019-11-29 12:59:40 +01:00
2020-01-21 16:51:21 +01:00
2020-02-10 14:15:24 +01:00
2020-01-16 09:18:08 +01:00
2020-01-16 09:18:08 +01:00
2019-11-29 12:59:40 +01:00
2019-12-24 08:51:03 -05:00