1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
Commit graph

1195 commits

Author SHA1 Message Date
Kostas Kyrimis
7944af3c62
feat: Add black formatter to the project (#1544)
Add black formatter and run it on pytests
2023-07-17 13:13:12 +03:00
Roman Gershman
9448220607
chore: disable persistent journaling feature (#1549)
1. We have not worked on it for many months
2. It's not on the short term roadmap
3. It complicates the code around the replication.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-17 11:05:15 +03:00
Roman Gershman
2c04311cc3
chore: Remove robj reference from zset_family (#1554)
This is pure refactoring PR that does not change any functionality besides
prohibiting using AsRobj/SyncRobj functions for compact objects of type
OBJ_ZSET. This is needed in case we decide in the future to implement our own
zset type.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-17 09:34:12 +03:00
Roman Gershman
3d6d9d99c7
fix: weekly alpine build (#1555)
Specifiying an exact boost version is not robust.
Also we do not depend on fibers anymore and boost-context is enough.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-17 09:03:02 +03:00
Roman Gershman
187bca9317
feat: implement two geo commands GEOADD/GEOHASH (#1543)
Only most basic functionality is covered, the options support
and variadic functionality for GEOADD is missing.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-16 09:19:35 +03:00
Cory Kramer
c5922fec8a
refactor(facade): Add includes for standard library headers. (#1538)
Add includes for standard library headers.
2023-07-15 21:10:39 +03:00
Roman Gershman
d858300109
chore: refactor zset_family (#1542)
1. Remove shard-local functions from zset_family.h and move them into anonymous namespace in cc file.
2. Fix a warning in geohash.c

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-13 23:35:34 +03:00
Roman Gershman
4a38fb7786
chore: import geo related files to Dragonfly repo (#1540)
Taken from redis source repo, tag: 7.0.8.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-13 15:01:57 +03:00
romange
e2b61a3839 chore(helm-chart): update to v1.6.1 2023-07-13 06:52:02 +00:00
Kostas Kyrimis
0f8f6f387b
feat: do not process lua script if sha exists in cache (#1537) 2023-07-12 19:31:42 +03:00
Roman Gershman
7d3766a197
chore: simplify SendMonitor function (#1534)
Pull test conditions out of the function and simplify its interface.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-11 13:32:08 +03:00
iko1
37eedd4c8b
chore: update jsoncons dependency (#1066)
* chore: update jsoncons dependency

* fix: remove unused test case

Signed-off-by: iko1 <me@remotecpp.dev>

* initial attempt to create custom memory allocator test

Signed-off-by: iko1 <me@remotecpp.dev>

* chore: update jsoncons dependency

Signed-off-by: iko1 <me@remotecpp.dev>

* chore: update jsoncons dependency

Signed-off-by: iko1 <me@remotecpp.dev>

---------

Signed-off-by: iko1 <me@remotecpp.dev>
2023-07-11 10:17:22 +03:00
adiholden
c27fa8d674
fix(regression test): fix in shutdown and replication pytests (#1530)
* fix(regression_test): fix in shutdown and replication pytests

- skip test_gracefull_shutdown test
- fix test_take_over_seeder test:
    bug: the dbfilename was not unique, therefore between different runs the server reload
    the snapshot of the last test run and this failed the test.
    fix: use random dbfilename
- fix test_take_over_timeout test:
    bug: REPLTAKEOVER timeout was not small enough for opt dfly build
    fix: decrease timeout

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-07-11 09:56:20 +03:00
Kostas Kyrimis
77a223d36d
fix: add tls-ca-cert-file and tls-ca-cert-dir flags to allow tls certificate validation (#1515)
1. add tls-ca-cert-file flag
2. add tls-ca-cert-dir flag
3. enables redis-cli to connect over tls without --insecure flag by properly validating certificate wtih CA
2023-07-11 08:28:18 +03:00
Abhradeep Chakraborty
da2ad7eceb
feat(stream): add support for xreadgroup command (#1475)
Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
2023-07-11 08:11:19 +03:00
romange
698cbefac1 chore(helm-chart): update to v1.6.0 2023-07-10 12:17:11 +00:00
Shahar Mike
a6745850ab
Fix regression test failures. (#1529)
The issue was that, sometimes, the ID generated for one of the nodes
contained the slot ID that was used in the test (either 5259 or 5260).
This caused the test to replace the "slot" part of the id, which in turn
caused the node to think that it no longer owns any slot.
2023-07-10 10:59:58 +03:00
Rounak Nandanwar
674f06875c
fix: zunion and zunionstore zero numkeys bug (#1522)
Fixes #1442

Signed-off-by: rounaknandanwar <rounak.nandanwar@gmail.com>
2023-07-10 09:50:59 +03:00
Kostas Kyrimis
4eb2012a8d
fix: add missing slash on startup for certain log_dir paths (#1500) 2023-07-06 19:26:37 +03:00
Roy Jacobson
3904a4f628
Fix regression test failures on old Python versions (#1521)
Signed-off-by: adiholden <adi@dragonflydb.io>
Co-authored-by: adiholden <adi@dragonflydb.io>
2023-07-06 15:27:39 +03:00
Kostas Kyrimis
15481b81ce
feat(replication): allow non-tls connections between replica and master on admin port #1419 (#1490)
1. Add new flag no_tls_on_admin_port
2. Add replication tests for no_tls_on_admin_port
2023-07-06 14:04:45 +03:00
Roy Jacobson
0f69d32b11
takeover: Cancel blocking commands (#1514)
* fix: Cancel blocking commands when performing a takeover

* Add some comments

* Make CancelBlocking a method of ConnectionContext

* add a small todo
2023-07-05 17:09:10 +02:00
adiholden
646f5304a5
fix(server): fix prints to log (#1520)
Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-07-05 17:46:16 +03:00
Bear
3c36a17ce2
docs : add korean translated README (#1518) 2023-07-05 12:16:52 +03:00
Roman Gershman
84d09800c3
chore: refresh helio (#1506)
In addition, add more states to tx local_mask to allow easier debugging.
Finally, add check-fail to verify tx invariants in order to prevent
reaching errorneous states that are nearly impossible to analyze.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-04 16:51:53 +03:00
Roy Jacobson
ea0364329e
fix: null deref in debug log (#1513) 2023-07-04 10:10:29 +03:00
Roy Jacobson
177a21b266
Fix a bug and add a timeout test for takeover. (#1512) 2023-07-03 16:46:38 +02:00
Roman Gershman
8c80bd7c5c
chore: tune snyk coverage to ignore test files (#1509)
Also, upgrade the alpine docker image according to Snyk suggestions.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-03 11:16:42 +03:00
Roy Jacobson
4babed54d3
feat: Support atomic replica takeover (#1314)
* fix(server): Initialize ServerFamily with all listeners.

- Add a test for CLIENT LIST which is the visible result of this.

* use std move

* feat: Implement replicas take over

* Basic test

* Address CR comments

* Write a better test. Sadly it fails

* chore: Expose AwaitDispatches for reuse in takeover

* Ensure that no commands can execute during or after a takeover

* CR progress

* Actually disable the expiration

* Improve tests coverage

* Fix the dispatch waiting code

* Improve testing coverage and fix a shutdown snaphot bug

* don't replicate a replica
2023-07-02 16:11:28 +02:00
Roman Gershman
e71fae7eea
fix: avoid crashing dragonfly on parsing error of cgroups config (#1503)
Fixes #1502

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-07-02 12:11:44 +03:00
Roy Jacobson
52192e0596
fix(server): Initialize ServerFamily with all listeners. (#1485)
* fix(server): Initialize ServerFamily with all listeners.

- Add a test for CLIENT LIST which is the visible result of this.

* use std move
2023-07-02 10:01:54 +02:00
Vladislav
1ee0e30255
fix: disable prohibited eval in multi test (#1505)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-07-02 10:50:03 +03:00
Vladislav
54fbf0d6fc
feat: compressed sorted set (#1474)
Implements basic compressed sorted set that can be used in indices to optimize memory usage

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-07-02 01:02:18 +03:00
Vladislav
cfca751848
feat: global eval in exec (#1443)
Enables execution of global lua scripts inside multi/exec transactions if the defualt script config enables global execution for scripts. This change is only a fix and does not provide any safeguards against other execution scenarios (namely enabling globality with script flags). In the future, the proper execution mode should be determined more carefully by inspecting the scripts to be executed

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Co-authored-by: Kostas Kyrimis  <kostaskyrim@gmail.com>
2023-07-01 22:12:05 +03:00
Kostas Kyrimis
542b9783b7
fix(regression): remove test case for info persistence (#1492)
The test case for checking is_loading == 1 is inherently racy because
the client can connect at any time before or after the dragonfly
instance loads the snapshot.
2023-07-01 11:57:54 +03:00
Kostas Kyrimis
3eaeef096c
fix: misspelled replication on pytest redis_replication (#1501) 2023-07-01 11:56:43 +03:00
Ikko Eltociear Ashimine
391146e480
Add Japanese README (#1494)
docs: add Japanese translated README

Signed-off-by: Ikko Eltociear Ashimine <eltociear@gmail.com>
2023-07-01 11:50:45 +03:00
adiholden
1c823ce559
feat(server): support command rename (#1489)
* feat(server): support command rename

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-29 15:38:02 +03:00
Shahar Mike
5c11beb919
feat(cluster): Send flush slots cmd from masters to replicas. (#1484)
This fixes potential data diffs between master and replica upon slot moving

Fixes #1320
2023-06-28 22:04:51 +03:00
Shahar Mike
3ebfdb1e19
fix(cluster): Fix CROSSSLOTS error with multi-key operations (#1488)
Fixes #1487
2023-06-28 13:16:50 +03:00
Shahar Mike
bf363661e4
cleanups: Remove unused member, rename test, remove unused forward decl. (#1483) 2023-06-28 09:41:04 +03:00
adiholden
aed01aa5e4
feat(github regression): add link to github job (#1482)
* feat(regression): add github job link

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-27 14:13:25 +03:00
Roy Jacobson
cbe72e353d
fix: Increase the duration of the seeding in test_replication_info. (#1479) 2023-06-26 10:41:25 +03:00
adiholden
5b95668676
bug(cluster): fix crash on flush slots with shutdown (#1477)
* bug(cluster): fix crash on flush slots with shutdown

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-26 09:39:59 +03:00
Kostas Kyrimis
33bcd57ae0
docs: update contributing.md with style guidelines (#1467) 2023-06-25 12:37:12 +03:00
Kostas Kyrimis
0670a81488
fix(regression): failing info persistence on snapshot pytests (#1473) 2023-06-23 16:04:44 +03:00
adiholden
242d70b285
fix(regression): fix json report filename (#1465)
Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-06-23 12:58:51 +03:00
Roy Jacobson
f3b93ce732
fix: Don't calculate replication lags when replica is not in stable sync (#1472) 2023-06-23 12:58:20 +03:00
Roman Gershman
3958853fde
fix: avoid using main_listener when migrating connections (#1471)
Partly solves #1470

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-06-23 07:09:54 +03:00
Tarun Pothulapati
2da32c1066
feat(debian): retain debug symbols in deb package (#1464) 2023-06-22 19:12:10 +03:00