Commit Graph

2616 Commits (2f4d7189ff581d0fe603e2a99ecbe0c3afdabea1)

Author SHA1 Message Date
Carol (Nichols || Goulding) 2f4d7189ff fix: Validate ServerId when creating structs from flatbuffers
When we get the flatbuffers, we won't have the server ID in addition to
the flatbuffers-- it's in the flatbuffers. But we want to validate the
`ServerId` once when the `SequencedEntry` is created so that its
`server_id` method can assume it has a valid `ServerId`.
2021-04-28 13:06:12 -04:00
kodiakhq[bot] b6447a1363
Merge pull request #1336 from influxdata/alwayspush
feat: Build a perf_image image for every commit in main
2021-04-28 08:23:42 +00:00
Marko Mikulicic 756e1b769e
feat: Build a perf_image image for every commit in main 2021-04-28 10:12:34 +02:00
Raphael Taylor-Davies 9b57214344
feat: move closing chunks as soon as possible (#1329)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-28 07:50:15 +00:00
kodiakhq[bot] 451b87a30e
Merge pull request #1320 from influxdata/crepererum/issue1219
docs: add design docs for catalog persistence
2021-04-28 07:38:06 +00:00
kodiakhq[bot] 3ce3afe544
Merge branch 'main' into crepererum/issue1219 2021-04-28 07:33:43 +00:00
Raphael Taylor-Davies 6bdc153361
feat: sort RUB (read buffer) chunks (#1308)
* feat: sort chunks before upserting to read buffer (#1216)

* chore: review feedback

* chore: fix merge conflict

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-27 16:50:48 +00:00
Raphael Taylor-Davies 7ca1da3fcd
feat: pushdown table and partition key predicates to catalog (#736) (#1327)
* feat: catalog predicate pushdown (#736)

* chore: fix lints

* chore: review comments

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-27 15:31:47 +00:00
kodiakhq[bot] 2dd6371148
Merge pull request #1325 from influxdata/crepererum/ci_doc2
ci: pass `--document-private-items` to `cargo doc`
2021-04-27 13:49:30 +00:00
kodiakhq[bot] f3739599a9
Merge branch 'main' into crepererum/ci_doc2 2021-04-27 13:44:50 +00:00
Marco Neumann 91bccdfca3 ci: pass `--document-private-items` to `cargo doc` 2021-04-27 15:42:07 +02:00
kodiakhq[bot] 108b4f9093
Merge pull request #1322 from influxdata/fixbuckets
fix: Histogram boundaries are durations not percentiles
2021-04-27 13:41:59 +00:00
Marko Mikulicic 2bbfd1d007
fix: Histogram boundaries are durations not percentiles 2021-04-27 15:19:09 +02:00
Marco Neumann 74927527b6 docs: add design docs for catalog persistence
Closes #1219.
2021-04-27 15:18:41 +02:00
kodiakhq[bot] da7f933be2
Merge pull request #1321 from influxdata/crepererum/ci_doc
docs: deny broken intradoc links
2021-04-27 12:07:19 +00:00
kodiakhq[bot] e78a81ee59
Merge branch 'main' into crepererum/ci_doc 2021-04-27 12:03:04 +00:00
kodiakhq[bot] 88a4c1403a
Merge pull request #1307 from influxdata/crepererum/issue1296
refactor: chunks shall always have data (= 1 table)
2021-04-27 12:02:40 +00:00
kodiakhq[bot] c3cb86fc1a
Merge branch 'main' into crepererum/issue1296 2021-04-27 11:58:10 +00:00
kodiakhq[bot] cf62ead1e2
Merge pull request #1323 from influxdata/disablecache
fix: Disable docker layer caching in CI
2021-04-27 11:53:53 +00:00
Marko Mikulicic a9852c2257
fix: Disable docker layer caching in CI 2021-04-27 13:33:25 +02:00
Marco Neumann 2ee12298ef ci: pass `--no-deps` to `cargo doc`
This should speed things up a bit.
2021-04-27 13:22:28 +02:00
Marco Neumann eddc9319ff docs: deny broken intradoc links 2021-04-27 13:22:28 +02:00
Marco Neumann af031894a6 ci: run `cargo doc` in CI
This will prevent checking in broken docs.
2021-04-27 13:22:26 +02:00
Raphael Taylor-Davies 20117de078
feat: string dictionary encoding (#1220) (#1262)
* feat: string dictionary encoding (#1220)

* chore: review comments

* chore: fix lint

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-27 09:36:58 +00:00
kodiakhq[bot] 97a83320c1
Merge pull request #1316 from influxdata/debug
fix: Remove authorization header in middleware
2021-04-27 08:36:36 +00:00
Marco Neumann c8594ce743 refactor: chunks shall always have data (= 1 table)
Chunks now always have "data" (aka exactly 1 table including
schema/columns). Open chunks can only be created with data. Rollovers do
NOT create open chunks anymore (this is now only done for incoming
data).

Closes #1296.
2021-04-27 10:28:57 +02:00
Marko Mikulicic b95491f723
fix: Remove authorization header in middleware
__Rationale__

Debug logs in the middle ware (and potentially elsewhere) can cause authorization headers
(containing authentication tokens) to be accidentally leaked in the logs.

It's easy to just remove those headers early in our HTTP middleware.
2021-04-27 09:57:06 +02:00
kodiakhq[bot] 90c351770c
Merge pull request #1301 from influxdata/crepererum/throttled_store
feat: throttled stores
2021-04-27 07:39:42 +00:00
kodiakhq[bot] 475f27d20d
Merge branch 'main' into crepererum/throttled_store 2021-04-27 07:35:08 +00:00
Marko Mikulicic 9633550cb8
fix: Log sha256sum before running docker build (#1309)
If the layer is cached, docker build won't print the output of the RUN command.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-27 07:34:36 +00:00
Marco Neumann c4a5e28bc1 feat: wire up throttled in-mem store 2021-04-27 09:31:48 +02:00
Marco Neumann 53e83f8385 feat: add throttled store wrapper 2021-04-27 09:31:48 +02:00
Marko Mikulicic 289332132c
feat: ingest_points_bytes_total records both success and errors (#1312)
__Rationale__

1. It's useful to know how much data we're throwing on the floor due to errors.
   Common ingestion errors are "no such database" or "max hard size reached".
   In both cases it's useful to be quickly able to gauge how much data would
   be ingested once the limiting factor for ingestion is lifted (e.g. the database is created via
   the management interface).

2. The name of the metric is `ingest_points_bytes_total` and the documentation states: `The number of bytes written`
   It's confusing to only count successes while not mentioning this neither in the metric name,
   nor in the metric description.

3. The sister metric `ingest_points_total` already records both successes and failures.

__Changes__

This PR adds a `status` tag to the `ingest_points_bytes_total`, mirroring what
we already do with `ingest_points_total`, so that  both the overall total and the total successfully
ingested bytes can be counted.
2021-04-26 20:53:46 +00:00
Andrew Lamb 35bc09ef7c
refactor: use `FromIter` rather than array builders to create system table arrays (#1246)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-26 19:47:11 +00:00
Andrew Lamb 84c863aeb0
refactor: remove unused PersistSegment job (#1245)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-26 19:41:59 +00:00
Carol (Nichols || Goulding) 934bc75855 fix: Remove PartialEq<u32> impls for ServerId, not really necessary 2021-04-26 18:44:32 +00:00
Carol (Nichols || Goulding) 272cdb85ce fix: Use the ServerId type everywhere, for writing, querying, anything 2021-04-26 18:44:32 +00:00
Carol (Nichols || Goulding) b8face3335 refactor: Organize use statements 2021-04-26 18:44:32 +00:00
Carol (Nichols || Goulding) bdb772b243 refactor: Alphabetize module declarations 2021-04-26 18:44:32 +00:00
Jake Goulding 67f5ad841d refactor: Introduce ServerId and CurrentServerId types 2021-04-26 18:44:32 +00:00
Raphael Taylor-Davies 0a835436ac
feat: use bitmasks within MUB (#1274) (#1289)
* feat: use bitmasks within MUB (#1274)

* chore: review feedback

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-26 18:00:16 +00:00
Andrew Lamb e33af0c084 fix: remove wait_for_complete 2021-04-26 16:59:36 +00:00
Andrew Lamb fcf5c304a6 fix: fixup merge conflicts 2021-04-26 16:59:36 +00:00
Andrew Lamb 348f38c2c9 feat: add status column 2021-04-26 16:59:36 +00:00
Andrew Lamb 9c74074095 feat: List background operations as system.operations table 2021-04-26 16:59:36 +00:00
Marko Mikulicic 3b3ac33575
fix: Set a global log/tracing subscriber (#1305)
Closes #1288

__Rationale__

`tracing::subscriber::set_default` only sets the subscriber for the current thread.
However, we're using multi-threaded tokio runtime, which means that most of the threads running
async code won't inherit the tracing subscriber, which means error/info/debug... logs won't be emitted!

To make things even more confusing, some logs do work (because they just happen to run in the same thread
that called `subscriber::set_default`.

__Change__

This PR makes us call `subscriber::set_global_default`.
This call can only be called once and is meant to be invoked by the main program (not by libraries).

It preserves the `TracingGuard` type, but now it's only used to flush the opentelemetry stuff.
2021-04-26 13:45:35 +00:00
Luke Bond 8aabef0141
Merge pull request #1304 from influxdata/chore/ci-debug-logging
chore: logging to debug CI
2021-04-26 13:06:32 +01:00
Luke Bond 39abadba0d chore: logging to debug CI 2021-04-26 12:49:23 +01:00
kodiakhq[bot] ae7ce8762d
Merge pull request #1303 from influxdata/dom/obs_deps
chore: fix observability dependency key
2021-04-26 11:36:36 +00:00
Dom 1826d86938 chore: fix observability dependency key
The observability_deps crate name was erroneously wrapped in double
quotes.
2021-04-26 12:22:21 +01:00