Raphael Taylor-Davies
5b00bc69e6
refactor: use Arc<Db> in lifecycle actions ( #1873 )
...
* refactor: use Arc<Db> in lifecycle actions
* chore: review feedback
2021-07-01 19:56:33 +00:00
Paul Dix
61917c107f
chore: add test for can_move on row count
2021-07-01 15:49:44 -04:00
Paul Dix
91f5478012
feat: remove MUB size threshold
...
Removes the MUB chunk close based on size. Also add a check in lifecycle policy to move if the MUB chunk crosses a default row count threshold.
2021-07-01 14:58:29 -04:00
Andrew Lamb
56c8c8d428
feat: Use separate executor for queries and compactions/moves ( #1870 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 16:47:50 +00:00
Raphael Taylor-Davies
f1a100c6ae
refactor: remove now unused chunk sort order ( #1854 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 16:39:45 +00:00
Raphael Taylor-Davies
43cabac3ac
feat: don't compact more than row threshold ( #1868 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 16:31:50 +00:00
Andrew Lamb
07826306ed
fix: Always deduplicate data prior to insertion into the ReadBuffer ( #1863 )
...
* fix: mark ReadBuffer as always deduplicated
* fix: Use compact plans during merge
* docs: Update server/src/db/chunk.rs
Co-authored-by: Nga Tran <ntran@influxdata.com>
Co-authored-by: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com>
Co-authored-by: Nga Tran <ntran@influxdata.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 16:23:37 +00:00
Jacob Marble
0779b0d9bd
feat: add gRPC listener for new write protocol ( #1842 )
...
* feat: add gRPC listener for new write protocol
* chore: clippy happy
* chore: lint
* chore: cargo fmt --all
* chore: cargo clippy
* chore: protobuf-lint
* chore: more formatting
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 16:15:12 +00:00
kodiakhq[bot]
68c94283bd
Merge pull request #1841 from influxdata/ntran/dedup_less_concat
...
feat: avoid concat_batches if possible
2021-07-01 16:06:49 +00:00
kodiakhq[bot]
e03a1a1def
Merge branch 'main' into ntran/dedup_less_concat
2021-07-01 15:59:22 +00:00
kodiakhq[bot]
26167a9e70
Merge pull request #1867 from influxdata/crepererum/rework_db_init_state_machine
...
refactor: rework DB init state machine
2021-07-01 15:31:10 +00:00
kodiakhq[bot]
84f2391edd
Merge branch 'main' into crepererum/rework_db_init_state_machine
2021-07-01 15:24:12 +00:00
Edd Robinson
8fc07cf4f0
fix: correctly evaluate exprs matching disjoint rows
2021-07-01 16:05:09 +01:00
Nga Tran
d0afc7a176
refactor: clean up and add a missing else case
2021-07-01 11:00:30 -04:00
Nga Tran
5cf623201d
fix: deduplicate the last batch before sending it downstream
2021-07-01 10:45:23 -04:00
Andrew Lamb
7235c7b965
refactor: Remove vestigial execution counters ( #1865 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-07-01 14:08:06 +00:00
Marco Neumann
e1e3163752
refactor: rework DB init state machine
...
Since adding new features like "sequencer replay" or init retries would
make the current code too complex, a refactor is required:
Config:
The config struct now holds a `DatabaseState` which is a simple linear
state machine representing the different stages of the database init.
Init:
The init module now has a fixpoint-loop which looks at the state,
decides what to do based on it and repeats until either the DB is
initialized or an error occured. This also makes it easier to continue
the init process "in the middle", e.g. when the preserved catalog is
broken or the sequencer (e.g. Kafka) could not be reached.
2021-07-01 13:47:51 +02:00
kodiakhq[bot]
8174af9137
Merge pull request #1856 from influxdata/crepererum/parquet_metadata_protobuf
...
refactor: use protobuf for in-parquet metadata
2021-07-01 08:00:27 +00:00
kodiakhq[bot]
b817ea88dd
Merge branch 'main' into crepererum/parquet_metadata_protobuf
2021-07-01 07:52:39 +00:00
Raphael Taylor-Davies
cc038010cd
feat: add persist_age_threshold to LifecycleRules ( #1853 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 21:27:06 +00:00
Andrew Lamb
cfa06e1497
chore: Add query tests for compacted chunks ( #1861 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 20:59:29 +00:00
Nga Tran
e8ef8e2790
chore: Merge branch 'main' into ntran/dedup_less_concat
2021-06-30 16:45:01 -04:00
kodiakhq[bot]
99093b18fb
Merge pull request #1862 from influxdata/ntran/timeout
...
fix: change timeout to have all tests passed on slow laptop
2021-06-30 20:17:39 +00:00
kodiakhq[bot]
0d24584ed3
Merge branch 'main' into ntran/timeout
2021-06-30 20:10:18 +00:00
Nga Tran
f6731c60d7
fix: change timeout to have all tests passed on slow laptop
2021-06-30 16:04:02 -04:00
Nga Tran
ba919726b6
test: unit tests
2021-06-30 15:01:31 -04:00
Raphael Taylor-Davies
99a15cd452
refactor: single lifecycle error enumeration ( #1859 )
...
* refactor: single lifecycle error enumeration
* fix: fmt
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2021-06-30 18:35:57 +00:00
Andrew Lamb
817a480cde
refactor: move lifecycle implementations out of db.rs and into their own modules ( #1858 )
...
* refactor: move lifecycle implementations out of db.rs and into their own modules
* fix: clippy
2021-06-30 17:24:04 +00:00
Andrew Lamb
9e1723620c
refactor: rename load_chunk_to_read_buffer to move_chunk_to_read_buffer ( #1857 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 16:53:18 +00:00
kodiakhq[bot]
a849c50749
Merge pull request #1848 from influxdata/er/refactor/gRPC_logging
...
refactor: improve logging level for gRPC errors
2021-06-30 15:49:46 +00:00
kodiakhq[bot]
0beb5a888c
Merge branch 'main' into er/refactor/gRPC_logging
2021-06-30 15:42:03 +00:00
Edd Robinson
1049cb0a2a
refactor: improve logging level for gRPC errors
2021-06-30 16:41:22 +01:00
Nga Tran
2a06b93b00
chore: Merge branch 'main' into ntran/dedup_less_concat
2021-06-30 11:37:15 -04:00
Nga Tran
1dbdabd66e
fix: 2 values are also considered to be the same if at least one of them is invalid
2021-06-30 10:52:21 -04:00
Marco Neumann
4204127b05
refactor: use protobuf for in-parquet metadata
2021-06-30 16:51:37 +02:00
kodiakhq[bot]
9448b8044e
Merge pull request #1850 from influxdata/crepererum/safer_min_max_sequence
...
refactor: make `MinMaxSequence` safer to use
2021-06-30 14:45:41 +00:00
kodiakhq[bot]
a2246fd890
Merge branch 'main' into crepererum/safer_min_max_sequence
2021-06-30 14:38:37 +00:00
Marco Neumann
043890369f
refactor: make `MinMaxSequence` safer to use
2021-06-30 16:37:48 +02:00
Raphael Taylor-Davies
635e4d0a7d
refactor: plumbing to prevent compaction starving persistence ( #1852 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 13:43:25 +00:00
Raphael Taylor-Davies
530b5cdf22
feat: namespace issues in git-log-prs ( #1849 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 13:35:34 +00:00
pierwill
b86fb88f60
docs: Edit Quick Start ( #1839 )
...
* docs: start editing Quick Start
* docs: edit Quick Start in README
* fix: reorder Quick start steps
* fix: Edit git instructions
* fix: s/values/options
* fix: Add a line
* fix: Edit release mode section
* fix: note that docker is optional
* fix: fix line break
* fix: fix link
* fix: more edits
* fix: s/Quick Start/Get started
* fix: rename API compatibility section
* fix: fix link
* fix: Apply code review suggestions
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* fix: fix link path
* fix: remove rust version check instruction
Co-authored-by: pierwill <pierwill@users.noreply.github.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-06-30 13:27:49 +00:00
Andrew Lamb
89757d7232
fix: do not print test output to logs except on failure ( #1840 )
...
* fix: do not print test output to logs except on failure
* docs: update CONTRIBUTING.md
2021-06-30 13:20:11 +00:00
kodiakhq[bot]
403f7297e1
Merge pull request #1844 from influxdata/crepererum/no_catalog_on_db_creation
...
feat: do NOT load preserved catalogs on late DB creation
2021-06-30 10:11:17 +00:00
kodiakhq[bot]
983062f6fa
Merge branch 'main' into crepererum/no_catalog_on_db_creation
2021-06-30 10:04:00 +00:00
kodiakhq[bot]
438b65cb94
Merge pull request #1845 from influxdata/er/refactor/read_buffer/table_names
...
refactor: remove table name from Read Buffer API.
2021-06-30 09:50:23 +00:00
kodiakhq[bot]
e5cf08d05c
Merge branch 'main' into er/refactor/read_buffer/table_names
2021-06-30 09:43:41 +00:00
Edd Robinson
d52807eb2b
Merge branch 'main' into er/refactor/read_buffer/table_names
2021-06-30 10:43:39 +01:00
Raphael Taylor-Davies
62d3305923
feat: optimize the dictionaries in the output of deduplicate node ( #1827 ) ( #1832 )
...
* feat: optimize dedup dictionaries (#1827 )
* fix: handle sliced null bitmasks
* chore: review feedback
2021-06-30 09:30:16 +00:00
Edd Robinson
2e430ac7f0
refactor: remove table name from read_filter schema
2021-06-30 09:50:53 +01:00
Edd Robinson
62f274cc1b
refactor: remove table name from column_values
2021-06-30 09:46:54 +01:00