Commit Graph

221 Commits

Author SHA1 Message Date
Ante Pušić
57ec774c86 Add tests for regex search and aggregations 2024-02-26 07:46:14 +01:00
Ante Pušić
0cd52497bb
Merge branch 'text-search-integration-poc' into text-search-phase_2-polish-api 2024-02-25 00:28:22 +01:00
Ante Pušić
9c31408aa8 Fix typo 2024-02-24 21:37:12 +01:00
Ante Pušić
a1b1eb1255
Merge branch 'master' into text-search-integration-poc 2024-02-24 13:04:48 +01:00
andrejtonev
6a4ef55e90
Better auth user/role handling (#1699)
* Stop auth module from creating users
* Explicit about auth policy (check if no users defined OR auth module used)
* Role supports database access definition
* Authenticate() returns user or role
* AuthChecker generates QueryUserOrRole (can be empty)
* QueryUserOrRole actually authorizes
* Add auth cache invalidation
* Better database access queries (GRANT, DENY, REVOKE DATABASE)
2024-02-22 14:00:39 +00:00
Ante Pušić
6db081395c Clarify tests that shouldn’t raise exceptions 2024-02-21 23:12:30 +01:00
Ante Pušić
d720315ed4
Merge branch 'master' into text-search-integration-poc 2024-02-20 11:34:37 +01:00
Marko Budiselić
61b9bb0f59
Add toolchain-v5 compatibility Revert to C++20 (#587)
* Upgrade cppitertools, spdlog, fmt, rapidcheck
* Make compilation work on both v4 and v5 toolchains
2024-02-19 21:09:54 +01:00
Ante Pušić
e19bc6d537 Add support for all-property and regex text search 2024-02-19 17:38:16 +01:00
Andi
7ec648b4ce
Add --experimental-enabled=high-availability (#1720) 2024-02-19 16:28:15 +00:00
Josipmrden
bae3e8a6d3
Add function for property sizes (#1557)
Add function for property sizes
2024-02-19 13:56:01 +01:00
Ante Pušić
c14e14dde5 Add e2e tests for disabled text search 2024-02-18 19:47:13 +01:00
Ante Pušić
30522ccaf1 Switch to experimental flags 2024-02-18 19:35:10 +01:00
Ante Pušić
5724708db7 Add tests for (non)existent text indices 2024-02-18 18:41:53 +01:00
Ante Pušić
d28f7ddea8
Merge branch 'master' into text-search-integration-poc 2024-02-18 00:46:17 +01:00
Gareth Andrew Lloyd
33c400fcc1
Fixup memory e2e tests (#1715)
- Remove the e2e that did concurrent mgp_* calls on the same transaction
  (ATM this is unsupported)
- Fix up the concurrent mgp_global_alloc test to be testing it more precisely
- Reduce the memory limit on detach delete test due to recent memory
  optimizations around deltas.
- No longer throw from hook, through jemalloc C, to our C++ on other
  side. This cause mutex unlocks to not happen.
- No longer allocate error messages while inside the hook. This caused
  recursive entry back inside jamalloc which would try to relock a
  non-recursive mutex.
2024-02-16 15:35:08 +00:00
Andi
3e3224f0a2
Forbid having multiple mains in the cluster (#1727) 2024-02-16 11:41:15 +00:00
Antonio Filipovic
bfc756c092
HA: Polish flow for replicas from coordinator (#1711) 2024-02-16 10:58:01 +01:00
Andi
20b47845f0
Forbid writing to cluster-managed main on restart (#1717) 2024-02-15 14:07:04 +01:00
Andi
fb281459b9
Add support for unregistering replication instances (#1712) 2024-02-14 14:24:59 +00:00
Gareth Andrew Lloyd
f48151576b
System replication experimental flag (#1702)
- Remove the compile time control
- Introduce the runtime control flag

New flag `--experimental-enabled=system-replication`
2024-02-13 12:57:18 +00:00
Andi
4a7c7f0898
Distributed coordinators (#1693) 2024-02-13 08:49:28 +00:00
Antonio Filipovic
4f4a569c72
Revert replication tests (#1707) 2024-02-12 16:42:57 +01:00
Ante Pušić
734ccabf3c
Merge branch 'master' into text-search-integration-poc 2024-02-10 11:10:38 +01:00
DavIvek
0133673f1d
Add support for query params in load csv (#1653) 2024-02-09 18:26:27 +01:00
Ante Pušić
3e20423050
Merge branch 'master' into text-search-integration-poc 2024-02-09 18:03:59 +01:00
Antonio Filipovic
54f78f9217
Revert e2e tests and remove flaky ones (#1703) 2024-02-09 12:55:31 +01:00
Ante Pušić
2731c57a81
Merge branch 'master' into text-search-integration-poc 2024-02-08 11:57:10 +01:00
Andi
cf80687d1d
HA: Organize Raft coordinator group (#1687) 2024-02-08 09:11:33 +00:00
Ante Pušić
6aa9e2a78b Rename the text search flag and set it to false by default 2024-02-08 00:55:45 +01:00
Ante Pušić
a6eb14f742 Fix the e2e tests 2024-02-08 00:22:57 +01:00
Antonio Filipovic
c15b62a88d
HA: Disable replication from old main (#1674) 2024-02-07 11:20:47 +01:00
Ante Pušić
e9aaf82985
Merge branch 'master' into text-search-integration-poc 2024-02-05 18:20:16 +01:00
andrejtonev
7ead00f23e
Adding authentication data replication (#1666)
* Add AUTH system tx deltas
* Add auth data RPC and handlers
* Support multiple system deltas in a single transaction
* Added e2e test
* Bugfix: KVStore segfault after move

---------

Co-authored-by: Gareth Lloyd <gareth.lloyd@memgraph.io>
2024-02-05 10:37:00 +00:00
Ante Pušić
2ac3d85735
Merge branch 'master' into text-search-integration-poc 2024-02-04 00:52:54 +01:00
Andi
cb7b88ad92
HA: Support restart of instances (#1672) 2024-02-01 11:55:48 +01:00
Ante Pušić
cdf7b53aa7
Merge branch 'master' into text-search-integration-poc 2024-01-31 00:55:46 +01:00
Ante Pušić
19642595e3 Fix typo 2024-01-30 20:02:24 +01:00
Andi
78a88737f8
HA: Add automatic failover (#1646)
Co-authored-by: antoniofilipovic <filipovicantonio1998@gmail.com>
2024-01-29 15:34:00 +01:00
Andi
38ade99652
HA: Add coordinator to replication cluster (#1608) 2024-01-24 13:07:51 +01:00
Gareth Andrew Lloyd
e7f6a5f4f4
Fix SkipList iterators (#1635)
Fix SkipList iterators and find methods to be as expected by normal C++ iterator usage
2024-01-23 15:31:28 +00:00
andrejtonev
071df2f439
Replication refactor part 7 (#1550)
* Split queries into system and data queries
* System queries are sequentially executed and generate separate transaction deltas
* System transaction try locks for 100ms
* last_commited_system_ts saved to DBMS durability
* Replicating CREATE/DROP DATABASE
* Sending a system snapshot if REPLICA behind
* Passing a copy of the gatekeeper::access as std::any to all functions that could call an async execution
* Removed delete_on_drop flag (we now always delete on drop)
* Using UUID as the directory name for databases
* DBMS durability update (added versioning and salient information)
* Automatic migration from previous version
* Interpreter can run some queries without a target database
* SHOW REPLICA returns the status of the currently active DB
* Returning UUID instead of db name in the RPC responses
* Using UUIDs for database specification in RPC (not name)
* FrequentCheck forces update on reconnect
* TimestampRpc will detect if a replica is behind, and will update client's state
* Safer SLK reads
* Split SHOW DATABASES in two SHOW DATABASES (list of current databases) and SHOW DATABASE a single string naming the current database

---------

Co-authored-by: Gareth Lloyd <gareth.lloyd@memgraph.io>
2024-01-23 12:06:10 +01:00
Ante Pušić
04410d242b Fill out tests 2024-01-22 13:45:59 +01:00
Ante Pušić
c7be58e1dc Improve tests 2024-01-22 10:28:29 +01:00
Ante Pušić
1334a631b3 Fix expecting exceptions in pytest tests 2024-01-22 09:03:50 +01:00
Ante Pušić
c60b66fde7 Improve tests 2024-01-18 01:51:28 +01:00
Ante Pušić
605a425bb3
Merge branch 'master' into text-search-integration-poc 2024-01-16 16:26:45 +01:00
Ante Pušić
2d2d21bab4 Implement remaining test cases and add more of them 2024-01-16 01:51:39 +01:00
Ante Pušić
085b5b8284 Add new text fixture 2024-01-15 20:30:08 +01:00
Ante Pušić
99417f75b6 Add test cases 2024-01-15 09:38:45 +01:00