1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-15 17:51:06 +00:00
Commit graph

1625 commits

Author SHA1 Message Date
Roy Jacobson
db21b735f6
feat(replication): Use a ring buffer with messages to serve replication. (#1835)
* feat(replication): Use a ring buffer with messages to serve replication.

* Fix libraries dep graph

* Address PR feedback

* nits

* add a comment

* Lower the default log length
2023-09-18 13:59:41 +03:00
Roy Jacobson
1e61ec8114
chore: Add a context manager to DflyInstance so we don't forget to close them. (#1873)
* chore: Add a context manager to DflyInstance so we don't forget to close
them.

* Update tests/dragonfly/config_test.py

Co-authored-by: Roman Gershman <roman@dragonflydb.io>
Signed-off-by: Roy Jacobson <roi.jacobson1@gmail.com>

---------

Signed-off-by: Roy Jacobson <roi.jacobson1@gmail.com>
Co-authored-by: Roman Gershman <roman@dragonflydb.io>
2023-09-18 13:52:56 +03:00
Roy Jacobson
74d78261fc
chore: Fix regression test after #1569 (#1872) 2023-09-18 12:26:18 +03:00
Roy Jacobson
b55316c0e6
tests: choose open ports randomally (#1569)
* Implement changes to the testing infrastructure to use random ports
* Use psutil to find out the random ports
2023-09-18 10:23:49 +03:00
Kostas Kyrimis
e81b5671b0
fix(Auth): authenticate with any password for default user (#1868) 2023-09-17 13:45:45 +03:00
Roman Gershman
3683cdb99d
chore: build rpm package for the release (#1866)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-16 22:47:56 +03:00
Uku Loskit
7a5fe1adc1
fix: fix json.arrappend not allowing passing JSON objects (#1867)
Signed-off-by: Uku Loskit <ukuloskit@gmail.com>
2023-09-16 12:27:20 +03:00
Roman Gershman
82050248b0
Run unit tests in macos build (#1859)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-15 23:20:37 +03:00
Kostas Kyrimis
bbd4c6b636
feat(AclFamily): add acl commands (#1844) 2023-09-15 14:28:36 +03:00
Kostas Kyrimis
ff079f0af1
fix(ServerFamily): proper initialization of FileSnapshotStorage when replicaof flag is used (#1858)
* fix(ServerFamily): proper initialization of FileSnapshotStorage when
replicaof flag is passed
2023-09-15 09:00:56 +03:00
Andy Dunstall
7bc98e5bd1
feat(snapshot): fix build on macos (#1861) 2023-09-14 18:02:28 +01:00
Andy Dunstall
a8f3764048
feat(tests): unset test DFLY env variables (#1856) 2023-09-13 18:24:48 +01:00
Roman Gershman
0ada51c42a
chore: enable search lib on Apple (#1854)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-13 20:08:33 +03:00
Kostas Kyrimis
0d20005528
fix: dfly_main small typo on unix_socket flag (#1853) 2023-09-13 16:52:44 +03:00
romange
c185a0b6ce chore(helm-chart): update to v1.10.0 2023-09-13 12:08:27 +00:00
Andy Dunstall
02664ee03a
feat(snapshot): add support for snapshot recovery from S3 (#1839)
* feat(snapshot): add support for loading snapshots from s3

* feat(snapshot): improve load error handling and logging

* feat(snapshot): replace const std::string& with std::string_view

* feat(snapshot): replace ServerFamily::Load error with GenericError
2023-09-13 12:28:21 +01:00
Aidarbek Suleimenov
04e88a1381
feat(server): Getting flags from the environment variables (#1810)
* flags from env variables

* querying environment vars

* remove includes

* refactor

* exit for unknown flag with DFLY_ prefix

* reflecting change in the test

* better tests

* refactor + new test case

* refactor test with inner class

* refactor

* revert back test flags as it might affect ci/cd

* fixing flags

* refactor

* remove includes

* refactor
2023-09-13 10:02:38 +00:00
Roy Jacobson
62d32c353e
feat(debug): Adds a DEBUG STACKTRACE subcommand (#1848)
* feat(debug): Add a DEBUG STACKTRACE subcommand to print fibers state

* update helio
2023-09-13 12:51:35 +03:00
Shahar Mike
b91435e360
opt(lua): Coordinate single-shard Lua evals in remote thread (#1845)
* opt(lua): !!WIP!! Coordinate single-shard Lua evals in remote thread

This removes the need for an additional (and costly) Fiber.
2023-09-13 11:52:35 +03:00
Roy Jacobson
ef0502238c
fix(tls): User friendly logging of OpenSSL errors (#1851)
* fix(tls): User friendly logging of OpenSSL errors

* Remove duplicate definition
2023-09-13 11:23:18 +03:00
Roman Gershman
761a1a7e78
Fix a potential crash in OnBreakCb (#1850)
I am not sure about the root cause of this flow but we can definitely
avoid a check-fail here.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-13 11:18:32 +03:00
adiholden
55710e40f3
chore(regression): send chat notificaiton only on main branch (#1847)
* chore(regression): send chat notificaiton only on main branch

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-09-13 09:17:02 +03:00
Roman Gershman
99244b1049
Support 'databases' alias for CONFIG GET (#1849)
Fixes #1842

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-12 19:19:05 +03:00
Roman Gershman
02fff36e3e
Add build_rpm script and rpm spec (#1831)
Also, link stdlib++ and libgcc statically.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-12 10:42:06 +03:00
Kostas Kyrimis
684bf97ce6
fix(AclFamily): move acl test files to pytest (#1843)
* Fixes broken release build
* Moves acl test files to acl pytest
2023-09-12 09:38:58 +03:00
Andy Dunstall
9fac9a7ace
feat(snapshot): move load path to snapshot storage (#1830)
* feat(snapshot): move snapshot storage to new file

* feat(snapshot): move file load path to snapshot storage

* feat(snapshot): move load paths to snapshot storage

* feat(snapshot): move open read file to snapshot storage

* feat(snapshot): remove redundant includes from save stages controller

* feat(snapshot): remove sv string literal
2023-09-11 07:41:13 +01:00
Borys
fcebb6acd0
fix(search-parser): fix AND, OR, NOT parsing issue (#1838)
Signed-off-by: Borys <borys@anyconnect.com>
2023-09-10 15:11:34 +03:00
adiholden
ba8adf7bde
skip test_multidim_knn (#1834)
Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-09-10 08:35:42 +00:00
Roy Jacobson
c18aa1c317
Revert "feat(CI): Configure sccache to work with GCS" (#1833)
Revert "feat(CI): Configure sccache to work with GCS (#1815)"

This reverts commit f3c4132ab6.
2023-09-10 08:11:26 +00:00
Roy Jacobson
f3c4132ab6
feat(CI): Configure sccache to work with GCS (#1815)
* feat(CI): Configure sccache to work with GCS

* Lower sccache log level now that it's working.
2023-09-10 10:23:51 +03:00
Kostas Kyrimis
fc6b7e5f9a
fix(regression-tests): correct path for acl files (#1829) 2023-09-09 11:59:17 +03:00
Kostas Kyrimis
164b045505
fix: regression tests for acl family test (#1826) 2023-09-08 19:57:09 +03:00
Andy Dunstall
9d45ddd9fe
feat(snapshot): add snapshot storage (#1827)
* feat(snapshot): add snapshot storage

* feat(snapshot): replace snapshot storage open file output variables
2023-09-08 17:12:13 +01:00
Kostas Kyrimis
48488c5682
feat(AclFamily): load/store aclfile (#1820)
* add ACL LOAD
* add ACL SAVE
* add --aclfile command
2023-09-08 14:20:06 +03:00
Vladislav
80ec976214
Revert "chore: partially revert adjust batching behavior to reduce network" (#1824)
Revert "chore: partially revert adjust batching behavior to reduce network (#1821)"

This reverts commit 55737a6f05.
2023-09-08 14:19:28 +03:00
Vladislav
257e789d37
fix: Reply within async_dispatch block in squashed pipeline (#1825)
* fix: Reply within async_dispatch block in squashed pipeline

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-09-08 14:19:16 +03:00
Andy Dunstall
8b5635eae8
fix(aws): initialise aws in a proactor (#1818)
* fix(aws): initialise aws in a proactor

* chore: update helio
2023-09-08 09:07:08 +01:00
Roman Gershman
29e154923f
fix: possible segfault bug (#1822)
A user reported crash in Connection::GetClientInfo function.
When connection just start running, its phase_ variable was not
initialized, so a possible "CLIENT LIST" command from another connection
could trigger invalid data access when printing phase_.
To be on the safe side I also verify that other pointers in the function
are set (could also be that we have a similar issue during connection shutdown).

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-08 10:21:05 +03:00
Vladislav
e69f18286b
feat(search): HNSW (#1799)
* feat(search): HNSW

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-09-08 09:57:18 +03:00
Kostas Kyrimis
55737a6f05
chore: partially revert adjust batching behavior to reduce network (#1821)
* partially reverts #1777
2023-09-08 09:45:44 +03:00
yancz
fb5ae98a4e
docs: update README.zh-CN.md (#1772)
* Update README.zh-CN.md

Signed-off-by: yancz2000 <yancz2000@163.com>

* Update README.zh-CN.md

Signed-off-by: yancz2000 <yancz2000@163.com>

* Update README.zh-CN.md

Signed-off-by: yancz <yancz2000@163.com>

---------

Signed-off-by: yancz2000 <yancz2000@163.com>
Signed-off-by: yancz <yancz2000@163.com>
2023-09-07 20:46:10 -04:00
Abhradeep Chakraborty
16c9502d02
feat(stream): add support for xclaim command (#1372)
* feat(stream): add support for xclaim command

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>

* add retrycount test

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>

---------

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
2023-09-07 11:35:28 +00:00
Kostas Kyrimis
30b8bcad4e
chore(AclFamily): remove unused using decl from acl_family_test (#1817) 2023-09-07 12:36:20 +03:00
Abhradeep Chakraborty
3b81cd74c9
feat(stream): add support for xpending command (#1806)
* feat(stream): add support for xpending command

---------

Signed-off-by: Abhradeep Chakraborty <abhradeep@dragonflydb.io>
2023-09-06 20:55:03 +03:00
Kostas Kyrimis
d1002842b8
chore(AclFamily): Move some of the regressions tests to unit and add (#1816)
* move error handling tests from regression to unit
* move ACL LIST regression to unit test
* move AUTH regression to unit test
* move ACL WHOAMI regression to unit test
* add unit tests for SETUSER/DELUSER (so they run on every PR)
* add unit tests for all ACL categories
2023-09-06 16:03:22 +00:00
adiholden
d1bce6978d
bug(server): multi cleanup on error (#1813)
the bug: when returning error on a command in multi tx we do not cleanup
the multi cntx
the fix: cleanup the cntx when error is returned

Signed-off-by: adi_holden <adi@dragonflydb.io>
2023-09-06 13:02:57 +00:00
Vladislav
e0af5fe836
Remove ICU library (#1812)
* chore(search): Replace icu with unialgo

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-09-06 15:06:38 +03:00
Yue Li
a8e4bebffe
feat (hset): Support arguments (count, withvalues) in HRANDFIELD (#1804)
feat (hset): Support arguments (count, withvalues) in HRANDFIELD

fixes #858
2023-09-06 09:04:36 +00:00
Roman Gershman
4e393cf742
fix: alpine weekly pipeline (#1811)
1. Move docker build files to separate dir from docker script files
   so that they won't be part of build context. Update dockerignore as well
2. Fix lib dependencies for alpine

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2023-09-06 08:27:40 +00:00
Vladislav
aa4cadfa12
feat(search): sized vectors (#1788)
* feat(search): Sized vectors

---------

Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
2023-09-06 11:00:03 +03:00