memgraph/tests/unit
János Benjamin Antal ac230d0c2d Add basic queries for managing streams (#179)
* Add CREATE, START, STOP and DROP queries

* Fix definition of port in replica query

* Explicitly stop the consumer before removing

* Fix offset committing in Consumer

* Add tests for basic stream queries

* Remove unnecessary WITH keywords from CREATE query

* Add tests

* Add STREAM privilege

* Disable not working test

The functionality is tested manually, but I couldn't make it work with
the mock kafka cluster.

* Add support for multiple topic names

* Replace skiplist by synchronized map

* Make Consumer::Test const and improve error handling

The improvement in the error handling is mostly done regarding to the
Test function. Instead of trying to revert the assignments, Test just
stores the last commited assignment. When Start or Test is called, they
check for the last commited assignments, and if it is saved, then they
try to restore it. This way:
1. All the failures are returned to the user (failed to save/restore)
2. Failed assignment cannot terminate Memgraph

* Make Test do not block creating/droping other streams
2021-07-07 16:08:22 +02:00
..
auth.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bfs_common.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bfs_single_node.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_chunked_decoder_buffer.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_chunked_encoder_buffer.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_common.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_decoder.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_encoder.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
bolt_session.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
bolt_testdata.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
CMakeLists.txt Introduce mgp_trans api (#175) 2021-07-07 15:57:36 +02:00
commit_log_v2.cpp Update commit log after recovery (#96) 2021-02-19 11:00:10 +01:00
communication_buffer.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00
cypher_main_visitor.cpp Add basic queries for managing streams (#179) 2021-07-07 16:08:22 +02:00
formatters.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
integrations_kafka_consumer.cpp Add basic queries for managing streams (#179) 2021-07-07 16:08:22 +02:00
interpreter.cpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
kafka_mock.cpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
kafka_mock.hpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
kvstore.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
main.cpp Add trigger queries and trigger store (#145) 2021-05-26 14:36:41 +02:00
metrics.cpp Migrate to C++17 2019-04-23 14:46:44 +02:00
mgp_kafka_c_api.cpp Introduce messages C-API (#168) 2021-07-07 15:38:51 +02:00
mgp_trans_c_api.cpp Introduce mgp_trans api (#175) 2021-07-07 15:57:36 +02:00
network_endpoint.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00
network_timeouts.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
network_utils.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
plan_pretty_print.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
property_value_v2.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_common.hpp Predefined variables (#138) 2021-05-26 14:13:14 +02:00
query_cost_estimator.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_dump.cpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
query_expression_evaluator.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_accumulate_aggregate.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_bag_semantics.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_checker.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_common.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_create_set_remove_delete.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_edge_cases.cpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
query_plan_match_filter_return.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_read_write_typecheck.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_plan_v2_create_set_remove_delete.cpp Remove old storage types 2020-01-23 14:32:33 +01:00
query_plan.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
query_pretty_print.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
query_procedure_mgp_module.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
query_procedure_mgp_type.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
query_procedure_py_module.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
query_profile.cpp Use timers for query timeout thread (#163) 2021-06-16 16:03:58 +02:00
query_required_privileges.cpp Add basic queries for managing streams (#179) 2021-07-07 16:08:22 +02:00
query_semantic.cpp Predefined variables (#138) 2021-05-26 14:13:14 +02:00
query_serialization_property_value.cpp Add trigger queries and trigger store (#145) 2021-05-26 14:36:41 +02:00
query_streams.cpp Add basic queries for managing streams (#179) 2021-07-07 16:08:22 +02:00
query_trigger.cpp Disable LOAD CSV with config (#180) 2021-06-30 11:19:13 +02:00
query_variable_start_planner.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
ring_buffer.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
rpc_messages.hpp Move RPC to root source directory 2020-01-27 11:50:24 +01:00
rpc.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
skip_list.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
slk_advanced.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
slk_common.hpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
slk_core.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
slk_streams.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
small_vector.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
socket.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_constraints.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_decoder_encoder.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_durability.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
storage_v2_edge.cpp Other predefined variables (#143) 2021-05-26 14:13:14 +02:00
storage_v2_gc.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_indices.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_isolation_level.cpp Multiple isolation levels (#171) 2021-06-14 15:47:57 +02:00
storage_v2_name_id_mapper.cpp Implement name to id mapper in storage v2 2019-07-19 11:24:27 +02:00
storage_v2_property_store.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_replication.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
storage_v2_wal_file.cpp Multiple isolation levels (#171) 2021-06-14 15:47:57 +02:00
storage_v2.cpp Other predefined variables (#143) 2021-05-26 14:13:14 +02:00
stripped.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
test_lcp.lisp LCP: Small test fixes 2019-05-10 16:10:17 +02:00
test_utils.hpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
typed_value.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
utils_algorithm.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_async_timer.cpp Use timers for query timeout thread (#163) 2021-06-16 16:03:58 +02:00
utils_csv_parsing.cpp Ignore carriage return at the end of line for a CSV file (#151) 2021-05-18 13:44:29 +02:00
utils_exceptions.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_file_locker.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_file.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_math.cpp Add logarithmic functions 2019-01-17 14:26:16 +01:00
utils_memory_tracker.cpp Expose query for cleaning memory and add memory limit flag (#100) 2021-03-24 15:10:28 +01:00
utils_memory.cpp Explore and implement the usage of clang-tidy and sanitizers (#125) 2021-04-01 17:08:40 +02:00
utils_on_scope_exit.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00
utils_rwlock.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00
utils_scheduler.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_signals.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_string.cpp Format all the memgraph and test source files (#97) 2021-02-18 15:32:43 +01:00
utils_synchronized.cpp Add Streams on top of Kafka Consumer (#172) 2021-07-07 15:57:36 +02:00
utils_thread_pool.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00
utils_timestamp.cpp Change log library to spdlog, expose log levels to user (#72) 2021-01-21 16:30:55 +01:00