Andi Skrgat
a6483fc6a7
No role when instance down
2024-01-26 08:59:28 +01:00
Andi
45def388c7
Merge branch 'master' into automatic-failover
2024-01-25 21:37:01 +01:00
Gareth Andrew Lloyd
9f7118d893
Performance tuning based on stress test ( #1572 )
...
Minor changes that speedup the large stress test.
Also now uses a stop token for a more productive shutdown. No need to wait for expensive GC runs.
2024-01-25 17:14:58 +00:00
Andi Skrgat
da3db9f3bc
Fix coordinator test
2024-01-25 16:02:17 +01:00
Andi Skrgat
34b2e360a9
fixup! Improve concurrency model
2024-01-25 15:33:33 +01:00
Andi Skrgat
9bc0d9425e
Improve concurrency model
2024-01-25 15:20:25 +01:00
antoniofilipovic
62d1b68c2f
Merge branch 'automatic-failover' of github.com:memgraph/memgraph into automatic-failover
2024-01-25 14:00:43 +01:00
antoniofilipovic
ec46cca7a3
fix issues
2024-01-25 14:00:29 +01:00
antoniofilipovic
326a04c6a3
fix failover to main
2024-01-25 12:08:01 +01:00
Andi Skrgat
b21f9e71ed
fixup! fixup! Fix build
2024-01-25 11:12:34 +01:00
Andi Skrgat
c2e0b310f5
fixup! Fix build
2024-01-25 09:54:00 +01:00
Andi Skrgat
b492c7d34f
Fix build
2024-01-25 09:38:11 +01:00
Andi Skrgat
303608982a
Remove cluster_initialized and client_initiated failover tests
2024-01-25 09:38:11 +01:00
Andi Skrgat
c0f979fdcb
Forbid spurious fail from new main during failover
2024-01-25 09:38:11 +01:00
antoniofilipovic
5242427686
merge with Andi's work, register instance works
2024-01-25 09:38:11 +01:00
antoniofilipovic
d3168ded5a
merge with Andi's work - comment out problematic parts
2024-01-25 09:38:11 +01:00
antoniofilipovic
0a28fee34b
add register instance and set instance to main queries and logic
2024-01-25 09:38:11 +01:00
Gareth Lloyd
dc9a2c45c4
Changes from Gareth to make build + comments
2024-01-25 09:38:11 +01:00
Andi Skrgat
1133bb8ecb
Idempotent failover from coordinator
2024-01-25 09:38:11 +01:00
Andi Skrgat
e9c5cc3b82
Remove ShowMainReplica status
2024-01-25 09:38:11 +01:00
Andi Skrgat
3f4ac0dd58
Thread-safe AF working
2024-01-25 09:38:10 +01:00
Andi Skrgat
a0ecea7d1c
Add generic CoordinatorInstance
2024-01-25 09:38:10 +01:00
Andi Skrgat
567e1fa1cb
CoordinatorState -> CoordinatorData
2024-01-25 09:38:10 +01:00
Andi Skrgat
ef37c44149
Thread-unsafe automatic failover
2024-01-25 09:38:10 +01:00
Andi Skrgat
ab34b060c0
Thread-safe access to coordinator data
2024-01-25 09:38:10 +01:00
Andi Skrgat
67c1874e81
AF callbacks
2024-01-25 09:38:10 +01:00
Andi Skrgat
9d457eafa8
AF thread issue
2024-01-25 09:38:10 +01:00
Andi Skrgat
986ea37ead
Refactoring of coord state
2024-01-25 09:38:10 +01:00
Andi Skrgat
afe7d47a5c
Improve coordinator handler
2024-01-25 09:38:10 +01:00
Andi Skrgat
8884a0ea78
Rename replica_check_freq to instance_check_freq
2024-01-25 09:38:10 +01:00
Andi
38ade99652
HA: Add coordinator to replication cluster ( #1608 )
2024-01-24 13:07:51 +01:00
DavIvek
6706ebfa2b
Add support for query parameters in return limit ( #1654 )
2024-01-23 19:17:27 +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
Gareth Andrew Lloyd
7f10636470
Bugfix don't use _Py_IsFinalizing ( #1657 )
...
This is an unstable function and would bump our dependency to python 3.7
2024-01-22 16:14:41 +00:00
Marko Barišić
76589903a4
Update BSL license change date ( #1656 )
2024-01-21 22:33:46 +01:00
Marko Budiselić
a8b625d861
Add NuRaft ADR ( #1634 )
...
Co-authored-by: Andi <andi8647@gmail.com>
2024-01-19 22:30:51 +01:00
andrejtonev
9c89fce249
Bugfix: Shutdown blocks due to wrong execution order ( #1649 )
...
* Bugfix: Destorying settings before stopping license checker
* Bugfix: Python GC running while shutting down
2024-01-19 17:05:47 +00:00
Marko Barišić
5e5f215be4
Add steps to bring kafka and pulsar up and down on daily builds ( #1643 )
2024-01-17 14:44:18 +01:00
Ivan Milinović
23dff58d22
Improve memory tracking ( #1631 )
2024-01-14 11:14:46 +01:00
Marko Budiselić
0a7a7bc0d1
Add Tantivy ADR ( #1633 )
2024-01-13 08:43:33 +01:00
Aidar Samerkhanov
c772cab766
ToString function now returns double values with precision 15 ( #1576 )
...
The DoubleToString function has been updated to handle higher precision doubles correctly. The unnecessary string length restriction has been removed, allowing the function to convert the full double value without prematurely truncating it. This change ensures that the string representation of doubles is more accurate, especially for very large or very small numbers. Unit tests have been added to verify the correct behavior for a range of double values.
2024-01-12 12:32:34 +04:00
Aidar Samerkhanov
2e4d27c59a
Add List Pattern Comprehension grammar. ( #1588 )
2024-01-11 18:20:21 +04:00
DavIvek
31f15b3651
Fix index hints ( #1606 )
2024-01-11 10:10:06 +01:00
DavIvek
b3d0c2ccc2
Add query parameters support for labels ( #1602 )
2024-01-10 15:08:21 +01:00
DavIvek
d4bcdb77ad
Fix using path identifier after CREATE ( #1629 )
2024-01-10 11:46:20 +01:00
Ivan Milinović
1ba2f4e619
Fix flaky GC test ( #1619 )
2024-01-10 00:11:29 +01:00
DavIvek
4bb9238679
Add support for triggers in database dump ( #1610 )
2024-01-09 13:05:54 +01:00
DavIvek
bd11266f82
Extend ToBoolean function ( #1620 )
2024-01-08 13:17:55 +01:00
hal-eisen-MG
57e40a2b18
Initial ADR guidance ( #1617 )
...
* Initial ADR guidance
* Clarified who decides whether an ADR is required; and fixed a typo
* Removed old folder location
2024-01-05 09:58:00 -08:00