Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resync from origin #1

Merged
merged 708 commits into from
Oct 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
708 commits
Select commit Hold shift + click to select a range
47007f6
fix: for Windows, copy snapshot files being backed up (#22551) (#22562)
davidby-influx Sep 22, 2021
0f6614f
fix(tsdb): sync series segment to disk after writing (#22545)
foobar Sep 23, 2021
4de5750
test: add ungrouped-agg case to perf test suite (#22567)
danxmoran Sep 23, 2021
22fa316
ci: Verify checksum of goreleaser install script (#22570)
pierwill Sep 23, 2021
d5b6f8e
fix: allow empty reqeust bodies to write API (#22574)
danxmoran Sep 24, 2021
1e9a31a
build: add CI jobs to natively test ARM64, Mac, and Windows (#22539)
danxmoran Sep 24, 2021
81cf5d7
chore(Makefile): allow specifying -gcflags via env (#22440)
jdstrand Sep 24, 2021
ea018df
build(flux): update flux to v0.132.0 (#22592)
Sep 28, 2021
0a6f562
fix: do not allow shard creation to create overlapping shards (#22604)
lesam Oct 1, 2021
a01d42d
feat(query/stdlib): update push down window logic for location option…
jsternberg Oct 1, 2021
2795c60
feat: add `--storage-write-timeout` flag to set write request timeout…
danxmoran Oct 4, 2021
5432ca6
build(flux): update flux to v0.133.0 (#22615)
scbrickley Oct 4, 2021
725794e
feat: show measurement database and retention policy wildcards (#22396)
lesam Oct 5, 2021
7c19225
feat: implement replication validation (#22581)
danxmoran Oct 5, 2021
a4ee58e
build: refactor lint and race-test jobs to use cross-builder executor…
danxmoran Oct 5, 2021
1542d24
feat: new recovery subcommand allows creating recovery user/token (#2…
lesam Oct 6, 2021
15a32a0
refactor: consolidate session-handling code (#22626)
danxmoran Oct 7, 2021
a02782c
feat: return new operator token during backup overwrite (#22629)
lesam Oct 7, 2021
e12e78a
fix: change session cookie name used by UI to avoid conflict with inc…
danxmoran Oct 7, 2021
708e808
feat(query/stdlib): update window planner rules for location changes …
jsternberg Oct 7, 2021
2ecbb68
test: fix DiskSizeBytes flakiness (#22639)
lesam Oct 8, 2021
e75d023
build: the update-changelog script should not produce side-effects (#…
codyshepherd Oct 11, 2021
7b7d4f3
fix(upgrade): don't drop shard-group durations when upgrading DBs (#2…
danxmoran Oct 11, 2021
0700cc8
chore: Add subquery tests for compatibility checks with Cloud 2 (#22621)
stuartcarnie Oct 11, 2021
401af4b
feat(flux): enable writing to remote hosts via `to()` and `experiment…
danxmoran Oct 12, 2021
cac4b42
build: bump to go1.17.2 (#22652)
danxmoran Oct 12, 2021
ca992e9
chore: use io/os over ioutil (#22656)
serenibyss Oct 12, 2021
1ba6581
feat: Add Bearer token auth (#22498)
russorat Oct 13, 2021
42ac916
feat: enable new dashboard autorefresh (#22669)
williamhbaker Oct 13, 2021
a6d4dc2
feat: list-bucket API supports pagination when filtering by org (#22674)
danxmoran Oct 14, 2021
2433e00
build(flux): update flux to v0.134.0 (#22671)
rockstar Oct 15, 2021
d8430aa
build: update script to run ui e2e tests (#22670)
williamhbaker Oct 18, 2021
05e6dc6
build(flux): update flux to v0.135.0 (#22691)
jsternberg Oct 18, 2021
84776d7
fix: manual task runs are scheduled asyncronously (#22702)
williamhbaker Oct 20, 2021
de7f052
chore: fix `dump_tsi` deadlock (#22705)
serenibyss Oct 20, 2021
504f0e4
feat: passing `type=basic` returns task metadata without query text (…
danxmoran Oct 22, 2021
5e6b0d5
fix: extend snapshot copy to filesystems that cannot link (#22703) (#…
davidby-influx Oct 22, 2021
7171e07
test: wait for time.Now to change before updating stack in pkger test…
danxmoran Oct 22, 2021
a1a7259
chore: fix KV migration to add notebooks and annotations to all-acces…
danxmoran Oct 22, 2021
8be2719
chore: bump openapi sha for 2.1 release (#22745)
danxmoran Oct 25, 2021
ca6b99f
build: use changelogger image for changelog generation (#22748)
williamhbaker Oct 25, 2021
58139c4
feat: add auth to remotes & replications APIs (#22744)
danxmoran Oct 26, 2021
fba7fac
build(flux): update flux to v0.136.0 (#22751)
nathanielc Oct 26, 2021
8825cd5
feat: replication apis durable queue management (#22719)
mcfarlm3 Oct 26, 2021
88afa92
fix: detect misquoted tag values and return an error (#22754) (#22785)
davidby-influx Oct 28, 2021
335b74b
feat: take a backup of KV/SQL metadata stores before applying migrati…
danxmoran Oct 28, 2021
b3b4dd6
feat: sql migrator uses records of completed migrations (#22797)
williamhbaker Oct 29, 2021
eedd846
feat: initialize `influxd downgrade` command to run `Down()` migratio…
danxmoran Oct 29, 2021
b93f3a3
build(flux): update flux to v0.137.0 (#22792)
jsternberg Nov 1, 2021
0fbda83
feat: recommend `influxd downgrade` after encountering unknown KV mig…
danxmoran Nov 1, 2021
a4fd1ca
build(flux): update flux to v0.139.0 (#22812)
rockstar Nov 1, 2021
f7573f4
feat: sql migrator can do down migrations (#22806)
williamhbaker Nov 1, 2021
88d6487
feat: extended downgrade command to include sql migrations (#22813)
williamhbaker Nov 2, 2021
f4e9ae9
build: upgrade protobuf library (#22654)
serenibyss Nov 2, 2021
ca633cd
chore: Remove outdated query readme (#22608)
alamb Nov 3, 2021
2136291
build: add a CI job to test `influxd downgrade` (#22821)
danxmoran Nov 3, 2021
a7f3b67
chore: clean up protobuf loose ends (#22823)
serenibyss Nov 5, 2021
1aac92c
refactor: remove replications.current_queue_size_bytes from sqlite (#…
danxmoran Nov 5, 2021
4af68d0
build: updated changelog automation (#22835)
williamhbaker Nov 6, 2021
36dcc20
chore: don't look for non-existent changelog file in release job (#22…
williamhbaker Nov 8, 2021
f6568a7
build(flux): update flux to v0.140.0 (#22845)
scbrickley Nov 9, 2021
cd0243d
feat: added replications queue management to launcher tasks (#22820)
mcfarlm3 Nov 9, 2021
5a0051a
build: Remove additional commit file (#22853)
williamhbaker Nov 9, 2021
6b56af3
feat: mirror writes to registered replications (#22833)
danxmoran Nov 10, 2021
2bace77
fix: unhandled errors returned by Sketch.Merge (#22858)
cascax Nov 10, 2021
0ecde93
build: stop building & pushing images to quay.io (#22864)
danxmoran Nov 11, 2021
11f6052
build: better versioning and verification for releases (#22866)
williamhbaker Nov 12, 2021
fa9ba8e
fix: duplicated X-version and X-Build headers for /ping endpoint (#22…
bednar Nov 12, 2021
16e3b16
chore: refactor performance test to generate queries and data togethe…
lesam Nov 15, 2021
40d9587
feat: add replications queue scanner (#22873)
serenibyss Nov 16, 2021
0572ae0
build: replace cross_build job with parallelized build matrix (#22877)
danxmoran Nov 16, 2021
e7a77f0
build: follow-up fixes after CI refactor (#22884)
danxmoran Nov 16, 2021
ad52815
feat: add field for dropping data resulting in non-retryable errors t…
williamhbaker Nov 16, 2021
a5f6431
build: pull SHA-specific image before tagging it as latest (#22891)
danxmoran Nov 17, 2021
9d8173c
chore: delete dead pprof related code (#22892)
lesam Nov 18, 2021
90baa80
chore: use tagged version of pkg-config (#22898)
williamhbaker Nov 18, 2021
fea3037
feat: configure perf tests with yaml (#22887)
lesam Nov 18, 2021
b9b86a1
chore: remove remote validation code (#22901)
williamhbaker Nov 18, 2021
6ee4727
refactor: use remote write func in NewDurableQueueManager (#22888)
serenibyss Nov 19, 2021
dece95d
feat: tsm compaction metrics via prometheus (#22904)
lesam Nov 19, 2021
3a81166
feat: added metrics collection for replications (#22906)
williamhbaker Nov 22, 2021
0a74085
feat: point write requests have metrics (#22910)
lesam Nov 22, 2021
a74e051
feat: disk size metrics per shard (#22912)
lesam Nov 22, 2021
feb459c
feat: metrics for cache subsystem (#22915)
lesam Nov 23, 2021
edb21ab
feat: metrics for wal subsystem (#22918)
lesam Nov 23, 2021
5a1e375
build: allow to build on FreeBSD (#22285)
gearnode Nov 24, 2021
f47d514
refactor: move replications store functionality to separate package (…
williamhbaker Nov 24, 2021
8aa3a8f
fix: add causal error when meta.db is missing (#22905)
lesam Nov 24, 2021
4ee93a9
chore: fix up message when build fails due to OS (#22928)
lesam Nov 24, 2021
9308b65
chore: remove unused member from TagSet (#22930)
lesam Nov 24, 2021
799d349
fix(tsi): sync index file before close (#22927)
lesam Nov 24, 2021
5ce164f
fix: remove influx CLI output from CONTRIBUTING (#22946)
jstirnaman Nov 30, 2021
9873ccd
feat: remote write function for replications (#22942)
williamhbaker Nov 30, 2021
9060150
test: add e2e test for replication streams (#22949)
williamhbaker Dec 1, 2021
f05d013
feat: metrics collection for replications remote writes (#22952)
williamhbaker Dec 1, 2021
3460f1c
feat: replication remote writes do not block local writes (#22956)
williamhbaker Dec 1, 2021
b970e35
feat: remaining storage metrics from OSS engine (#22938)
lesam Dec 2, 2021
e4e1633
fix: replications remote writes do not block server shutdown (#22958)
williamhbaker Dec 2, 2021
28bcd41
feat: batch replications remote writes to avoid payload limit errors …
mcfarlm3 Dec 2, 2021
6096ee2
feat: replications metrics include failure to enqueue (#22962)
williamhbaker Dec 2, 2021
39eeb3e
fix(restore): fix race condition which could cause restore command to…
gwossum Dec 6, 2021
e5cbd27
fix: advance replications queue after successful remote writes (#22967)
williamhbaker Dec 8, 2021
e3ff434
test: fix flaky replications tests (#22973)
williamhbaker Dec 8, 2021
a7a5233
feat: advance queue scanner periodically instead of every remote writ…
williamhbaker Dec 13, 2021
0e5b14f
chore: increase replications batch size limits (#22983)
williamhbaker Dec 13, 2021
5a919b6
feat: enable remotes and replication streams feature (#22990)
williamhbaker Dec 13, 2021
f78c189
build(flux): update flux to v0.146.0 (#22988)
scbrickley Dec 13, 2021
4fd4bd0
fix: use copy when a rename spans volumes (#22995)
davidby-influx Dec 14, 2021
6023496
refactor: replications local write optimization (#22993)
mcfarlm3 Dec 15, 2021
c51a0df
feat: error out when config file contains 1.x config values (#22996)
williamhbaker Dec 16, 2021
b0a0e73
chore: remove unused user http code (#23011)
williamhbaker Dec 20, 2021
afb167a
feat: `query-memory-bytes` zero-value is unlimited (#23013)
williamhbaker Dec 21, 2021
f78f9ed
feat: api/v2/config endpoint displays runtime configuration (#23003)
williamhbaker Dec 23, 2021
a8ca413
chore: add deprecation notice for print-config command (#23026)
williamhbaker Dec 28, 2021
c889d0f
chore: remove outdated `/docs` folder (#23028)
williamhbaker Dec 28, 2021
4f74049
feat: add downgrade target for 2.1 (#23029)
williamhbaker Dec 29, 2021
11c0081
fix(templates): disable use of jsonnet with `/api/v2/templates/apply`…
williamhbaker Dec 30, 2021
c1d384d
test: fix flaky enqueue test (#23035)
williamhbaker Jan 10, 2022
a812d8b
build(flux): update flux to v0.148.0 (#23047)
Jan 11, 2022
b02c89e
feat: option to log flux queries cancelled because of server shutdown…
williamhbaker Jan 11, 2022
0c30afd
fix: updating a check does not require an owner id (#23034)
williamhbaker Jan 13, 2022
888f82c
build(flux): update flux to v0.150.0 (#23064)
jsternberg Jan 19, 2022
2a957c9
chore(query/influxql): remove the influxql transpiler (#23000)
jsternberg Jan 31, 2022
b8ccf5b
fix: correctly handle PartialWriteError (#23098)
davidby-influx Feb 2, 2022
64615f4
chore: remove unused dockerfile (#23100)
bnpfeife Feb 3, 2022
f68758b
build(flux): update flux to v0.152.0 (#23086)
scbrickley Feb 4, 2022
e20b5e9
fix: remove nats for scraper processing (#23107)
lesam Feb 10, 2022
34c150f
build(flux): update flux to v0.154.0 (#23116)
jsternberg Feb 11, 2022
0bd28f6
fix: update 422 dry-run response to conform to API spec (#23121)
DStrand1 Feb 11, 2022
c4717ef
refactor(query): remove detailed query traces (#23125)
jsternberg Feb 17, 2022
afb9733
build(flux): update flux to v0.156.0 (#23142)
jsternberg Feb 22, 2022
e5ccbb8
fix: forbid reading OSS buckets for a token with only write permissio…
lesam Feb 24, 2022
adf29df
feat(kit/feature): allow influxdb to set flux feature flags (#23123)
jsternberg Feb 24, 2022
0c5bedf
refactor: improve logging during influxd upgrade to give mapping meta…
mcfarlm3 Feb 28, 2022
355d32b
chore: update OSS ci pipeline to match the updates to monitor-ci (#23…
wiedld Mar 9, 2022
36df687
build(flux): update flux to v0.158.0 (#23175)
rockstar Mar 10, 2022
49ce57c
fix: remove telegraf endpoint pagination (#23182)
lesam Mar 14, 2022
7c0ec4d
fix: replications replicates flux to() writes (#23188)
lesam Mar 14, 2022
7d310c2
build(flux): update flux to v0.159.0 (#23190)
scbrickley Mar 14, 2022
4e08604
feat: Add MeasurementNames method to MeasurementFieldSet (#23173)
andrewcharlton Mar 15, 2022
df01d93
fix: allow flux http calls to be unlimited (#23191)
lesam Mar 15, 2022
253451b
test: unskip flux group tests (#23193)
lesam Mar 15, 2022
dedaa7f
chore: upgrade to go1.17.8 (#23209)
DStrand1 Mar 17, 2022
3ec5a57
fix: tell browser about cookie expiry (#23201)
lesam Mar 18, 2022
a40e12b
feat: allow changing a password with `influxd recovery user update` (…
lesam Mar 18, 2022
2c930fd
feat: add --hardening-enabled option to limit flux/pkger HTTP request…
jdstrand Mar 18, 2022
5e3ea7b
refactor(flux): convert the allocator into an interface (#23214)
jsternberg Mar 22, 2022
e304ef9
fix: add write permissions check for DELETE and DROP MEASUREMENT (#23…
jdstrand Mar 24, 2022
0504498
fix(models): reset provided slice correctly (#23223)
philjb Mar 24, 2022
5231d2d
feat(query): enable the mqtt pool dialer by default (#23226)
jsternberg Mar 24, 2022
89916ec
build(flux): update flux to v0.161.0 (#23227)
jsternberg Mar 24, 2022
359fcc4
feat: add maximum age to replication queues (#23206)
DStrand1 Mar 25, 2022
72c4c55
build(flux): update flux to v0.162.0 (#23255)
jsternberg Apr 5, 2022
bb84905
build(flux): update flux to v0.163.0 (#23259)
jsternberg Apr 8, 2022
cf1f2e2
build(flux): update flux to v0.164.0 (#23269)
rockstar Apr 13, 2022
82d1123
build: upgrade to Go 1.18.1 (#23252)
DStrand1 Apr 13, 2022
24f64a7
fix(annotations): skip flaky annotation tests (#23275)
nathanielc Apr 14, 2022
c535994
fix: remove controller 64bit misalignment (#23260)
2opremio Apr 14, 2022
05840ce
fix(systemd): fix operator in host detection (#23276)
DStrand1 Apr 14, 2022
1805f4b
build(flux): update flux to v0.164.1 (#23280)
rockstar Apr 19, 2022
438eadc
chore: use common semantic PR and commit message checks (#23300)
Apr 26, 2022
30a9fd4
fix: MeasurementsCardinality should not be less than 0 (#23304)
gwossum Apr 27, 2022
71a02c2
chore: remove previous semantic pull request config (#23305)
Apr 27, 2022
9c33764
fix: do not panic on cleaning up failed iterators (#21666) (#23319)
davidby-influx Apr 29, 2022
d906507
chore: upgrade flux to v0.167.0 (#23348)
bnpfeife May 17, 2022
6222ea2
build(flux): update flux to v0.168.0 (#23363)
nathanielc May 23, 2022
afd0b99
build: update changelogger to ignore case when parsing verbs (#23369)
bnpfeife May 24, 2022
2e9e174
fix(query/control): add all of the statistics from flux statistics in…
jsternberg May 26, 2022
9e20f9f
feat: add signifier to replication user agent (#23370)
DStrand1 May 31, 2022
8f54774
build(flux): update flux to v0.169.0 (#23384)
scbrickley May 31, 2022
ab8be80
chore: update jsonparser to 1.1.1 and yaml.v3 to 3.0.1 (#23385)
jdstrand Jun 1, 2022
8c9768c
fix: replace unprintable and invalid characters in errors (#23387) (#…
davidby-influx Jun 1, 2022
910d5a2
build: upgrade Go to 1.18.3 (#23410)
DStrand1 Jun 7, 2022
a10adf6
feat: add fields to tasks bucket to match cloud (#23406)
jeffreyssmith2nd Jun 8, 2022
d705841
feat: error when creating v1 auth with a nonexistent bucket id (#23422)
jeffreyssmith2nd Jun 13, 2022
a9df3f8
fix: fully clean up partially opened TSI (#23430) (#23454)
davidby-influx Jun 14, 2022
a8054f8
test: add openapi spec validation to OSS grace tests (#23452)
lesam Jun 14, 2022
841be3c
build: remove goreleaser for build workflow (#23423)
bnpfeife Jun 14, 2022
53580ea
fix: remember shards that fail Open(), avoid repeated attempts (#2343…
davidby-influx Jun 14, 2022
a492993
build(flux): update flux to v0.171.0 (#23453)
Jun 14, 2022
692b0d5
feat: add instance-id flag for identifying edge nodes (#23447)
jeffreyssmith2nd Jun 16, 2022
9e55686
fix: replications remote write failure can deadlock remote writer (#2…
DStrand1 Jun 16, 2022
8bd4fc5
fix: lost TSI reference / close TagValueSeriesIDIterator in error cas…
DStrand1 Jun 16, 2022
090f681
feat: Add remotes and replications to telemetry (#23456)
jeffreyssmith2nd Jun 16, 2022
21885a7
fix: log the log level at startup (#23472)
lesam Jun 17, 2022
bf5e6eb
feat: Update Contributing.md to be more accurate for a clean checkout…
jeffreyssmith2nd Jun 17, 2022
83bb8ed
build: update frozen changelog (#23477)
bnpfeife Jun 17, 2022
85e4e63
build: fix release workflow (#23475)
bnpfeife Jun 17, 2022
76cfddb
fix: emit zipfile for windows (#23487)
bnpfeife Jun 23, 2022
cbbf4b2
build(flux): update flux to v0.172.0 (#23494)
jsternberg Jun 24, 2022
3fcc085
chore: Fix link in the README (#23488)
clarus Jun 27, 2022
e7cf522
feat: implement nightly docker builds without goreleaser (#23498)
bnpfeife Jun 27, 2022
07bab31
build(flux): update flux to v0.173.0 (#23505)
nathanielc Jun 30, 2022
4d33c70
build(flux): update flux to v0.174.0 (#23518)
scbrickley Jul 5, 2022
69a95dc
fix: Update the condition when reseting cursor (#23522)
Marwes Jul 8, 2022
4da4d03
build(flux): update flux to v0.174.1 (#23531)
skartikey Jul 12, 2022
4b2949a
build: upload release and nightly CHANGELOG.md (#23527)
bnpfeife Jul 13, 2022
33a7add
test(label): Invalid closure capture (#23353)
SimonRichardson Jul 13, 2022
4789d54
fix: improve error messages opening index partitions (#23532) (#23535)
davidby-influx Jul 13, 2022
00edb77
fix: create TSI MANIFEST files atomically (#23539) (#23546)
davidby-influx Jul 14, 2022
91a83ba
chore: Update PULL_REQUEST_TEMPLATE.md (#23270)
samhld Jul 19, 2022
85dc158
chore: upgrade CircleCI Mac OSX image (#23565)
bnpfeife Jul 19, 2022
f762346
fix: add paths to tsi log and index file errors (#23557) (#23562)
davidby-influx Jul 19, 2022
37562c7
build: upgrade to Go 1.18.4 (#23571)
bnpfeife Jul 20, 2022
619eb1c
fix: restore in-memory Manifest on write error (#23552) (#23578)
davidby-influx Jul 25, 2022
a9f751f
feat(query): add planner rule for converting aggregate window to a pu…
jsternberg Jul 26, 2022
c58bbab
build(flux): update flux to v0.176.0 (#23585)
jsternberg Jul 26, 2022
f0072ef
chore(pkger): fix typo in README.md (#23542)
eltociear Jul 28, 2022
67ccbae
feat: add the concept of an instance owner (#23497)
jeffreyssmith2nd Aug 1, 2022
7e7d1db
build(flux): update flux to v0.177.0 (#23597)
Aug 1, 2022
f7b1905
fix: do not delete replication on remote config delete (#23493)
DStrand1 Aug 2, 2022
adeac8b
feat: add virtual DBRP mappings based on bucket name (#23606)
candrewlee14 Aug 3, 2022
cd4f93b
build(flux): update flux to v0.177.1 (#23612)
scbrickley Aug 8, 2022
78c969e
build(flux): update flux to v0.178.0 (#23615)
Aug 9, 2022
afbbfac
fix: fix virtual DBRP FindMany, make virtual bucket default if not ov…
candrewlee14 Aug 12, 2022
c2c9d17
build(flux): update flux to v0.179.0 (#23627)
jsternberg Aug 16, 2022
90d45e8
feat: enable static-pie builds (2.x) (#23630)
bnpfeife Aug 16, 2022
187f991
fix: improve virtual DBRP default handling (#23626)
candrewlee14 Aug 16, 2022
48fb5ce
chore: update fluxtest skip list (#23633)
scbrickley Aug 17, 2022
6f50e70
feat: replicate based on bucket name rather than id (#23638)
jeffreyssmith2nd Aug 18, 2022
34323c9
chore: use 22.04 image instead of 21.10 for perf test (#23647)
bnpfeife Aug 18, 2022
5b204b4
chore: use 22.04 image instead of 21.10 for perf test (#23648)
bnpfeife Aug 18, 2022
accce86
chore: update CHANGELOG_frozen.md for 2.4 (#23651)
jeffreyssmith2nd Aug 18, 2022
785a465
refactor: remove reference to flux.Spec in query tests (#23652)
jsternberg Aug 19, 2022
daaf866
fix: several minor quality issues (#23667)
jeffreyssmith2nd Aug 23, 2022
728070e
chore: upgrade Rust to 1.63.0 (#23660)
bnpfeife Aug 24, 2022
ee8ca45
fix: use copy of loop variable in parallel test (#23669)
renatolabs Aug 24, 2022
aa9c49e
build(flux): update flux to v0.180.1 (#23666)
Aug 24, 2022
8f15620
build(flux): update flux to v0.181.0 (#23682)
jsternberg Aug 29, 2022
11019d2
fix: check that user IDs are not in use in user create (#23705)
DStrand1 Sep 1, 2022
b87deb4
fix: don't allow creating an auth with instance resources (#23674)
jeffreyssmith2nd Sep 2, 2022
485968c
feat: unpin ui to point at latest (#23704)
jeffreyssmith2nd Sep 2, 2022
b51fefd
fix: set limited permissions on package installs (#23683)
jeffreyssmith2nd Sep 2, 2022
1c6fbf9
chore: add protoc-gen script to releng (2.x) (#23697)
bnpfeife Sep 2, 2022
c433342
chore: remove duplicate word in comments (#23685)
Abirdcfly Sep 9, 2022
91623dd
docs(logger): fix incorrect doc string (#23442)
cemremengu Sep 12, 2022
b72848d
feat: optimize saving changes to fields.idx (#23701) (#23728)
davidby-influx Sep 15, 2022
c40ad64
feat(security): set SameSite=strict on session cookie (#23723)
jdstrand Sep 15, 2022
663d43d
fix: allow backup of all buckets (#23719)
jeffreyssmith2nd Sep 20, 2022
43c2e08
chore: upgrade to Go 1.18.6 (#23750)
bnpfeife Sep 26, 2022
635f8d8
build(flux): update flux to v0.184.2 (#23758)
Sep 27, 2022
eada36b
test: remove group skips (#23720)
onelson Sep 27, 2022
f36646d
feat: bump to latest UI (#23733)
jeffreyssmith2nd Sep 27, 2022
aa5c1c0
docs: cleanup CONTRIBUTING.md - clarify instructions and output. (#23…
jstirnaman Sep 27, 2022
a321e72
build(flux): update flux to v0.185.0 (#23775)
nathanielc Oct 5, 2022
d8553c0
test(flux): use vanilla flagger for fluxtest (#23762)
onelson Oct 5, 2022
34254ee
build(flux): update flux to v0.186.0 (#23784)
jsternberg Oct 11, 2022
a0f1184
fix: manually scheduled task runs now run when expected (#23664)
jeffreyssmith2nd Oct 13, 2022
4ed184d
fix: fixes an error querying virtual dbrps (#23731)
jeffreyssmith2nd Oct 13, 2022
2ad8995
fix: improve delete speed when a measurement is part of the predicate…
jeffreyssmith2nd Oct 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1,303 changes: 719 additions & 584 deletions .circleci/config.yml

Large diffs are not rendered by default.

142 changes: 142 additions & 0 deletions .circleci/package/control/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
#!/bin/bash

BIN_DIR=/usr/bin
DATA_DIR=/var/lib/influxdb
LOG_DIR=/var/log/influxdb
SCRIPT_DIR=/usr/lib/influxdb/scripts
LOGROTATE_DIR=/etc/logrotate.d
INFLUXD_CONFIG_PATH=/etc/influxdb/config.toml

function install_init {
cp -f $SCRIPT_DIR/init.sh /etc/init.d/influxdb
chmod +x /etc/init.d/influxdb
}

function install_systemd {
cp -f $SCRIPT_DIR/influxdb.service /lib/systemd/system/influxdb.service
systemctl enable influxdb
}

function install_update_rcd {
update-rc.d influxdb defaults
}

function install_chkconfig {
chkconfig --add influxdb
}

function should_upgrade {
if [[ ! -s /etc/influxdb/influxdb.conf ]]; then
# No V1 config present, no upgrade needed.
return 1
fi

bolt_dir="/root/.influxdbv2 /var/lib/influxdb/.influxdbv2 /var/lib/influxdb"
for bolt in $bolt_dir; do
if [[ -s ${bolt}/influxd.bolt ]]; then
# Found a bolt file, assume previous v2 upgrade.
return 1
fi
done

return 0
}

function upgrade_notice {
cat << EOF

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Important 1.x to 2.x Upgrade Notice !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thank you for installing InfluxDB v2. Due to significant changes between
the v1 and v2 versions, upgrading to v2 requires additional steps. If
upgrading to v2 was not intended, simply re-install the v1 package now.

An upgrade helper script is available that should be reviewed and executed
prior to starting the influxdb systemd service. In order to start the v2
upgrade, execute the following:

sudo /usr/share/influxdb/influxdb2-upgrade.sh

Visit our website for complete details on the v1 to v2 upgrade process:
https://docs.influxdata.com/influxdb/latest/upgrade/v1-to-v2/

For new or upgrade installations, please review the getting started guide:
https://docs.influxdata.com/influxdb/latest/get-started/

EOF
}

function init_config {
mkdir -p $(dirname ${INFLUXD_CONFIG_PATH})

local config_path=${INFLUXD_CONFIG_PATH}
if [[ -s ${config_path} ]]; then
config_path=${INFLUXD_CONFIG_PATH}.defaults
echo "Config file ${INFLUXD_CONFIG_PATH} already exists, writing defaults to ${config_path}"
fi

cat << EOF > ${config_path}
bolt-path = "/var/lib/influxdb/influxd.bolt"
engine-path = "/var/lib/influxdb/engine"
EOF
}

# Add defaults file, if it doesn't exist
if [[ ! -s /etc/default/influxdb2 ]]; then
cat << EOF > /etc/default/influxdb2
INFLUXD_CONFIG_PATH=${INFLUXD_CONFIG_PATH}
EOF
fi

# Remove legacy symlink, if it exists
if [[ -L /etc/init.d/influxdb ]]; then
rm -f /etc/init.d/influxdb
fi

# Distribution-specific logic
if [[ -f /etc/redhat-release ]]; then
# RHEL-variant logic
if command -v systemctl &>/dev/null; then
install_systemd
else
# Assuming sysv
install_init
install_chkconfig
fi
elif [[ -f /etc/debian_version ]]; then
# Ownership for RH-based platforms is set in build.py via the `rmp-attr` option.
# We perform ownership change only for Debian-based systems.
# Moving these lines out of this if statement would make `rmp -V` fail after installation.
chown -R -L influxdb:influxdb $LOG_DIR
chown -R -L influxdb:influxdb $DATA_DIR
chmod 750 $LOG_DIR
chmod 750 $DATA_DIR

# Debian/Ubuntu logic
if command -v systemctl &>/dev/null; then
install_systemd
else
# Assuming sysv
install_init
install_update_rcd
fi
elif [[ -f /etc/os-release ]]; then
source /etc/os-release
if [[ "$NAME" = "Amazon Linux" ]]; then
# Amazon Linux 2+ logic
install_systemd
elif [[ "$NAME" = "Amazon Linux AMI" ]]; then
# Amazon Linux logic
install_init
install_chkconfig
fi
fi

# Check upgrade status
if should_upgrade; then
upgrade_notice
else
init_config
fi
File renamed without changes.
22 changes: 22 additions & 0 deletions .circleci/package/control/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

DATA_DIR=/var/lib/influxdb
USER=influxdb
GROUP=influxdb
LOG_DIR=/var/log/influxdb

if ! id influxdb &>/dev/null; then
useradd --system -U -M influxdb -s /bin/false -d $DATA_DIR
fi

# check if DATA_DIR exists
if [ ! -d "$DATA_DIR" ]; then
mkdir -p $DATA_DIR
chown $USER:$GROUP $DATA_DIR
fi

# check if LOG_DIR exists
if [ ! -d "$LOG_DIR" ]; then
mkdir -p $LOG_DIR
chown $USER:$GROUP $DATA_DIR
fi
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash -e

/usr/bin/influxd &
PID=$!
echo $PID > /var/lib/influxdb/influxd.pid

PROTOCOL="http"
BIND_ADDRESS=$(influxd print-config --key-name http-bind-address)
TLS_CERT=$(influxd print-config --key-name tls-cert | tr -d '"')
TLS_KEY=$(influxd print-config --key-name tls-key | tr -d '"')
if [ -n "${TLS_CERT}" ] && [ -n "${TLS_KEY}" ]; then
echo "TLS cert and key found -- using https"
PROTOCOL="https"
fi
HOST=${BIND_ADDRESS%:*}
HOST=${HOST:-"localhost"}
PORT=${BIND_ADDRESS##*:}

set +e
attempts=0
url="$PROTOCOL://$HOST:$PORT/ready"
result=$(curl -k -s -o /dev/null $url -w %{http_code})
while [ "${result:0:2}" != "20" ] && [ "${result:0:2}" != "40" ]; do
attempts=$(($attempts+1))
echo "InfluxDB API at $url unavailable after $attempts attempts..."
sleep 1
result=$(curl -k -s -o /dev/null $url -w %{http_code})
done
echo "InfluxDB started"
set -e
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ User=influxdb
Group=influxdb
LimitNOFILE=65536
EnvironmentFile=-/etc/default/influxdb2
ExecStart=/usr/bin/influxd
ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh
KillMode=control-group
Restart=on-failure
Type=forking
PIDFile=/var/lib/influxdb/influxd.pid
UMask=0027

[Install]
WantedBy=multi-user.target
Expand Down
File renamed without changes.
170 changes: 170 additions & 0 deletions .circleci/scripts/build-package
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
#!/bin/bash
set -o errexit \
-o nounset \
-o pipefail

REGEX_RELEASE_VERSION='[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+'

if [[ ${RELEASE:-} ]]
then
# This ensures that release packages are built with valid versions.
# Unfortunately, `fpm` is fairly permissive with what version tags
# it accepts. This becomes a problem when `apt` or `dpkg` is used
# to install the package (both have strict version requirements).
if ! [[ ${VERSION} =~ ^${REGEX_RELEASE_VERSION}$ ]]
then
printf 'Release version is invalid!\n' >&2 && exit 1
fi
fi

function run_fpm()
{
if [[ ${1} == rpm ]]
then
case ${ARCH} in
arm64)
ARCH=aarch64
;;
amd64)
ARCH=x86_64
;;
esac
fi

pushd "${workspace}"

fpm \
--log error \
`# package description` \
--name influxdb2 \
--vendor InfluxData \
--description 'Distributed time-series database.' \
--url https://influxdata.com \
--maintainer [email protected] \
--license MIT \
`# package configuration` \
--input-type dir \
--output-type "${1}" \
--architecture "${ARCH}" \
--version "${VERSION}" \
--iteration 1 \
`# package relationships` \
--deb-recommends influxdb2-cli \
--conflicts influxdb \
--depends curl \
`# package scripts` \
--before-install control/preinst \
--after-install control/postinst \
--after-remove control/postrm \
`# package files` \
--chdir fs/ \
--package /artifacts \
--directories /var/lib/influxdb \
--rpm-defattrdir 750 \
--rpm-defattrfile 750

popd

# `goreleaser` stripped off the package revision and replaced '_' with
# '-'. Since the dockerfiles expect the previous naming convention,
# this rewrites the package names to match. Version information is
# also stored as metadata within the package.
case ${1} in
deb)
mv "/artifacts/influxdb2_${VERSION}-1_${ARCH}.deb" \
"/artifacts/influxdb2-${VERSION}-${ARCH}.deb"
;;
rpm)
mv "/artifacts/influxdb2-${VERSION//-/_}-1.${ARCH}.rpm" \
"/artifacts/influxdb2-${VERSION//-/_}.${ARCH}.rpm"
;;
esac
}

sudo bash <<'EOF'
mkdir /artifacts && chown -R circleci: /artifacts
EOF

build_archive()
{
workspace="$(mktemp -d)"

mkdir "${workspace}/influxdb2_${PLAT}_${ARCH}"

# `failglob` is required because `bin/influxd_${PLAT}_${ARCH}/*` may
# not expand. This will prevent the package from being built without
# the included binary files. This will also display as an error
# from CircleCI interface.
shopt -s failglob
cp -p LICENSE README.md "bin/influxd_${PLAT}_${ARCH}/"* \
"${workspace}/influxdb2_${PLAT}_${ARCH}/"

pushd "${workspace}"

if [[ ${PLAT} != windows ]]
then
# Using `find .. -type f` to supply a list of files to `tar` serves two
# purposes. The first being that `tar` wont construct a '.' directory
# in the root of the tarfile. The second being that this excludes
# empty directories from the tarfile.
find "influxdb2_${PLAT}_${ARCH}/" -type f \
| tar -czf "/artifacts/influxdb2-${VERSION}-${PLAT}-${ARCH}.tar.gz" -T -
else
# windows uses zip
find "influxdb2_${PLAT}_${ARCH}/" -type f \
| zip -r "/artifacts/influxdb2-${VERSION}-${PLAT}-${ARCH}.zip" -@
fi

popd
}

build_package_linux()
{
if [[ ${PLAT} != linux ]]
then
return 0
fi

workspace="$(mktemp -d)"

mkdir -p "${workspace}/fs/usr/bin"

# (see reasoning above)
shopt -s failglob
cp -rp .circleci/package/. "${workspace}/"
cp -p "bin/influxd_${PLAT}_${ARCH}/"* "${workspace}/fs/usr/bin"

run_fpm deb
run_fpm rpm
}

sign_artifacts()
{
# If this is not a release version, don't sign the artifacts. This
# prevents unathorized PRs and branches from being signed with our
# signing key.
if [[ ! ${RELEASE:-} ]]
then
return 0
fi

# CircleCI mangles environment variables with newlines. This key contians
# escaped newlines. For `gpg` to import the key, it requires `echo -e` to
# expand the escape sequences.
gpg --batch --import <<<"$(echo -e "${GPG_PRIVATE_KEY}")"

# TODO(bnpfeife): replace with code signing server
for target in /artifacts/*
do
gpg \
--batch \
--pinentry-mode=loopback \
--passphrase "${PASSPHRASE}" \
--detach-sign \
--armor "${target}"
done
}

build_archive
build_package_linux
sign_artifacts
Loading