-
Notifications
You must be signed in to change notification settings - Fork 25.8k
TSDB: Support GET and DELETE and doc versioning #82633
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
Changes from all commits
b8d424c
0158d17
ceee396
d1e0166
fba41e7
61949d1
c6f7fc0
30020e8
de74543
4bbbb68
8495be2
2194ccb
b5a0e98
181db11
53ebad2
ecb3410
1dce50c
f9085d9
5f1b3ab
20371c3
429b34d
5a89bb5
edcf8ab
7329d35
fe21154
6578b4b
83bf7ed
0e5996b
b50a8b9
5e703ca
aa9b850
ddeef8c
c6cd5f9
b691265
abfe686
0d013d9
bf5fee1
f24f1b3
eedb357
8e95ae8
808212c
ed71783
f78727d
83acf4b
897f1a0
f0e9b75
f826185
1f4fa00
3580bf9
8191f5c
86f7bbe
3658674
61ab876
f6be24e
d63d1b1
2e68bde
a71c63f
5361137
351c1af
b75de4e
e82e88c
e1cdbc5
68807cd
602c57d
5bea91f
9c717a2
4ae6687
813bda1
7e3c979
c5f2200
0f4d601
46fe6c1
b8c0e19
14645e2
6cf7c30
1ff6f4f
a0a5359
4fda972
260acdd
f2b5c5d
1f146c5
ffa2ec8
f708ec2
122df24
064cbc5
3037fad
15455a2
12842e3
6031b08
af14f3a
ce7a765
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 82633 | ||
| summary: "TSDB: Support GET and DELETE and doc versioning" | ||
| area: TSDB | ||
| type: feature | ||
| issues: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -499,12 +499,9 @@ tsdb: | |
| - '{"@timestamp": "2021-04-28T18:50:03.142Z", "metricset": "pod", "k8s": {"pod": {"name": "cow", "uid":"1c4fc7b8-93b7-4ba8-b609-2a48af2f8e39", "ip": "10.10.55.4", "network": {"tx": 1434521831, "rx": 530575198}}}}' | ||
|
|
||
| - do: | ||
| catch: bad_request | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we will need some bwc-dance here with skip versions to ensure that the old version runs against an 8.1 cluster and the new version against 8.2? I think it could be ok to only have the new version against 8.2, since the old version is still tested via the old version test.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll bet we never run these against a mixed version cluster. This should totally have failed....
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've started a discussion with some other folks about this one. We'll see where that goes. |
||
| delete_by_query: | ||
| index: tsdb | ||
| body: | ||
| query: | ||
| match_all: {} | ||
|
|
||
| - match: {failures.0.status: 400} | ||
| - match: {failures.0.cause.reason: "delete is not supported because the destination index [tsdb] is in time series mode"} | ||
| - match: {deleted: 1} | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure why this change is needed? I wonder if using
documentParseris no longer legal?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's legal, but without the
createEmptycall here we won't set the_idif the index doesn't have any mappings.ThiscreateEmptydance is what we do before indexing into an empty shard.I think it'd be pretty reasonable to make
documentParserwork in these cases rather than make this change though.