Roman Gershman
c70c159abb
chore: harden lua rules
2024-05-16 16:08:54 +03:00
Roman Gershman
73e44a941e
chore: reset enable_direct_fd to avoid socket leakage in kernel ( #3051 )
...
The leakage can be identified by checking /proc/net/sockstat
Fixes #3045
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-16 09:44:53 +03:00
Roman Gershman
6b8a8b6410
fix: header for oom_errors_total ( #3043 )
2024-05-13 14:00:47 +03:00
Roman Gershman
5bf7e3b146
chore: update helio together with new mimalloc version ( #3040 )
...
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-13 12:48:05 +03:00
Roman Gershman
8721ca7fca
chore: add half-range indices ( #3041 )
...
Add indices in form of [:end] or [start:]
Also, enable jsonpathv2 by default
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-13 10:30:58 +03:00
Roman Gershman
3e0a9e16cc
chore: prevent updating gcc on macos ( #3037 )
...
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-13 10:30:42 +03:00
Stepan Bagritsevich
d3a585113f
fix(set): fix random in SRANDMEMBER and SPOP commands ( #3022 )
...
Signed-off-by: Stepan Bagritsevich <sbagritsevich@quantumbrains.com>
2024-05-13 10:08:01 +03:00
Borys
4cd142d42c
fix: reduce delay when stop replica #3020 ( #3028 )
...
* fix: reduce delay when stop replica #3020
2024-05-12 17:30:06 +03:00
Roman Gershman
a9956e9723
feat: support subrange expressions in jsonpathv2 ( #3036 )
...
Support for expressions like `$.arr[1:-2]`.
The change applies to our own implementation of jsonpath,
jsoncons already supports this format.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-11 22:30:55 +03:00
Vladislav
b7fdc41d2e
chore: fix macos tiering ( #3032 )
2024-05-09 14:46:14 +00:00
romange
ab2ce0fef8
chore(helm-chart): update to v1.18.0
2024-05-09 08:44:05 +00:00
Roman Gershman
b3c08a3eb1
chore: update versions and remove caching code ( #3030 )
2024-05-09 11:39:41 +03:00
Borys
3dd6c4959c
feat: add defragment command ( #3003 )
...
* feat: add defragment command and improve auto defragmentation algorithm
2024-05-08 14:26:42 +03:00
Vladislav
d675e63ab0
chore(dash): Replace comparator with predicate ( #3025 )
...
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-08 13:03:15 +03:00
Roman Gershman
25e6930ac3
Revert "chore: get rid of kv_args and replace it with slices to full_… ( #3024 )
...
Revert "chore: get rid of kv_args and replace it with slices to full_args (#2942 )"
This reverts commit de0e5cb0bd
.
2024-05-08 03:01:37 +03:00
Vladislav
5c4279c285
feat(tiering): MGET support ( #3013 )
...
* feat(tiering): MGET support
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-07 23:13:36 +03:00
Vladislav
f27506e678
feat(tiering): simple offload loop ( #2987 )
...
Simple offloading for tiering
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-06 22:28:45 +03:00
Vladislav
8697b20a9e
chore: Remove tiering test skip ( #3011 )
...
chore: reduce test limits
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-06 21:19:54 +03:00
adiholden
186ff31e29
Fix benchmark ( #3017 )
...
* fix(benchmark): fix lag check
Signed-off-by: adi_holden <adi@dragonflydb.io>
---------
Signed-off-by: adi_holden <adi@dragonflydb.io>
2024-05-06 18:38:13 +03:00
Stepan Bagritsevich
7d522fd00b
fix(zset): fix random in ZRANDMEMBER command ( #2994 )
...
fixes dragonflydb#2850
Signed-off-by: Stepan Bagritsevich <sbagritsevich@quantumbrains.com>
2024-05-06 18:22:25 +03:00
adiholden
a4f67fbfad
fix(server): shrink replication steaming buf ( #3012 )
...
* fix server: shrink replication steaming buf
Signed-off-by: adi_holden <adi@dragonflydb.io>
2024-05-06 15:06:23 +00:00
adiholden
dd80d06be5
fix(server): non auto journal write after callback finish ( #3016 )
...
fix server: non auto journal write after callback finish
Signed-off-by: adi_holden <adi@dragonflydb.io>
2024-05-06 17:18:51 +03:00
Roman Gershman
de0e5cb0bd
chore: get rid of kv_args and replace it with slices to full_args ( #2942 )
...
The main change is in tx_base.* where we introduce ShardArgs slice that
is only forward iterable. It allows us to go over sub-ranges of the full arguments
slice or read an index of any of its elements.
Since ShardArgs provide now indices into the original argument list we do not need to build the reverse index in transactions.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-06 15:53:30 +03:00
adiholden
135af96f2f
fix(server): lag is 0 when server not in stable state ( #3010 )
...
* fix server: lag is 0 when server not in stable state
Signed-off-by: adi_holden <adi@dragonflydb.io>
2024-05-06 10:17:11 +03:00
Roman Gershman
816cec12ed
chore: pull latest helio ( #3009 )
...
Also clean-up unused flags.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-05 22:43:59 +03:00
Shahar Mike
9f6b716b47
feat(lua): Add Lua stats to INFO STATS
and /metrics
( #3008 )
...
* feat(lua): Add Lua stats to `INFO STATS` and `/metrics`
Stats include:
1. Interpreter count
2. Interpreter bytes
3. Time spent blocked waiting for an available interpreter
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-05 20:19:17 +03:00
Roman Gershman
186f4bcdca
chore: export listener stats ( #3007 )
...
* chore: export listener stats
Specifically export reached maxclient event.
---------
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-05 13:28:37 +03:00
Vladislav
5d66e2f123
chore: fix tiering macos stub ( #3006 )
2024-05-03 19:13:17 +00:00
Vladislav
9e3748421b
fix(tiering): rename v2 + max_file_size ( #3004 )
...
* fix: rename + max_file_size
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-03 21:36:18 +03:00
Zacharya
6b480237be
Benchmark fixes ( #3005 )
...
* fix(benchmark): depcreated node 16 github actions
2024-05-03 19:53:45 +03:00
Zacharya
5a37c47aaf
feat(benchmark-tests): run in K8s ( #2965 )
...
Signed-off-by: adi_holden <adi@dragonflydb.io>
* feat(benchmark-tests): run in K8s
---------
Signed-off-by: adi_holden <adi@dragonflydb.io>
Co-authored-by: adi_holden <adi@dragonflydb.io>
2024-05-03 15:12:15 +00:00
Vladislav
08983c181f
chore: small tiering fixes ( #2966 )
...
* chore: tiering fixes
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2024-05-02 18:00:46 +00:00
Roman Gershman
10cf2b677b
chore: fix double header issue ( #3002 )
...
As reported on discord:
"text format parsing error in line 31: second TYPE line for metric name"
Also, improved consistency between other headers and their values.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-02 17:27:03 +03:00
Shahar Mike
082aba02ef
fix(cluster-migration): Support cancelling migration right after starting it ( #2992 )
...
* fix(cluster-migration): Support cancelling migration right after starting it
This fixes a few small places, but most importantly it does not allow a
migration to start before both the outgoing and incoming side received
the updated config. This solves a few edge cases.
Fixes #2968
* add TODO
* fix test
* gh comments and fixes
* add comment
2024-05-02 15:50:42 +03:00
adiholden
a95419b0c4
fix(server): small string allocations only under 256 bytes str ( #2991 )
...
Signed-off-by: adi_holden <adi@dragonflydb.io>
2024-05-02 10:32:05 +00:00
Roman Gershman
2c74bce649
chore: improve performance of Scan operation ( #2990 )
...
Pass a temporary string object to extract key names more efficiently.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-02 12:54:33 +03:00
Roman Gershman
9bda5b1d4b
chore: another preparation commit to get rid of kv_args in transaction ( #2996 )
...
This changes Entry::Payload to struct instead of variant.
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-02 09:59:45 +03:00
Shahar Mike
653086c910
fix(memcached): Register memcached listener to handle --maxclients
( #2985 )
...
* fix(memcached): Register memcached listener to handle `--maxclients`
We add other listeners to `listeners`, but we seem to have forgotten to
do that to the memcached listener.
* protocol() == REDIS
2024-05-01 22:46:16 +03:00
Kostas Kyrimis
f20512e8b1
chore(acl): add vlog and check on deluser flow ( #2995 )
...
* add vlog before and after we evict connections on deluser flow
* replace dcheck with check
2024-05-01 18:22:44 +00:00
Roman Gershman
07d076a658
chore: remove version checks when running our regtests ( #2988 )
2024-05-01 13:09:06 +03:00
Roman Gershman
c37fe87bf1
chore: update our container distributions versions ( #2983 )
...
1. Restrict build context in our dev/weekly builder to ease development iterations.
2. Switch weekly build to debian 12-slim because it's smaller than 24.04
3. Update our prod releases to use ubuntu 22.04
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-05-01 11:34:23 +03:00
Kostas Kyrimis
39c7cfdf72
fix: allow non hashed passwords when loading users from acl file ( #2982 )
...
* allow non hashed passwords when loading from acl file
2024-05-01 09:57:59 +03:00
Kostas Kyrimis
ab269553ac
fix: check return code of process after communicate ( #2976 )
...
* check return code of process after terminate
2024-05-01 09:57:37 +03:00
Kostas Kyrimis
1fd16abc27
fix: remove acl-check and cancel instead when REPLCONF ACK fails to validate ( #2920 )
...
* remove acl-checker which is also the source of this bug
* add a fallback that cancels replication when REPLCONF ACK fail
2024-05-01 09:57:11 +03:00
Kostas Kyrimis
c84b6fac4c
fix: crash during migration when connection is closing ( #2973 )
2024-04-30 23:24:49 +03:00
Vladislav
fd5772a186
chore(tiering): Lots of metrics ( #2977 )
...
* chore(tiering): Lots of metrics
2024-04-30 22:25:45 +03:00
Borys
415839df79
fix: fix deadlock and slot flush for migration cancel #2968 ( #2972 )
...
* fix: fix deadlock and slot flush for migration cancel #2968
2024-04-30 08:44:05 +00:00
Roman Gershman
b7686f26a5
feat: implement json.merge ( #2960 )
...
feat: json.merge
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2024-04-29 23:40:38 +03:00
Kostas Kyrimis
652d4da932
chore(acl): allow multiple users in acl deluser ( #2945 )
...
* add allow multiple users in acl deluser command
2024-04-29 17:03:54 +03:00
Borys
654ec9f1c4
feat: add slot migration error processing ( #2957 )
...
* feat: add slot migration error processing
2024-04-29 10:51:23 +03:00