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

Fix get-snapshot-api :docs:integTest #83273

Merged
merged 4 commits into from
Jan 28, 2022

Conversation

joegallo
Copy link
Contributor

I ran into this on https://gradle-enterprise.elastic.co/s/dezdqwxhe7652/tests/:docs:integTest/org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT/test%20%7Byaml=reference%2Fsnapshot-restore%2Fapis%2Fget-snapshot-api%2Fline_508%7D?top-execution=1 yesterday.

If you win the timing lottery, then there can be a backing index for the slm history datastream, and it'll get snapshotted (e.g. .ds-.slm-history-5-2022.01.27-000001), but then the later API calls will fail because they're all written to expect no indices in the snapshot.

./gradlew ':docs:integTest' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/snapshot-restore/apis/get-snapshot-api/*}"

Also there's a docs change for the create-snapshot-api -- there's no none option for indices (there is one for feature_states and I've left that one alone).

@joegallo joegallo added >test Issues or PRs that are addressing/adding tests v8.0.0 v8.1.0 v7.17.0 labels Jan 28, 2022
@joegallo joegallo added the :Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs label Jan 28, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jan 28, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for catching that error with none and the indices parameter.

I'll push a commit to fix that in the 7.16 and 7.15 docs as well.

jrodewig added a commit that referenced this pull request Jan 28, 2022
The create snapshot API's `indices` parameter doesn't support a `none`
value.

Relates to #83273 and #79209.
jrodewig added a commit that referenced this pull request Jan 28, 2022
The create snapshot API's `indices` parameter doesn't support a `none`
value.

Relates to #83273 and #79209.
@joegallo joegallo merged commit 0935485 into elastic:master Jan 28, 2022
@joegallo joegallo deleted the get-snapshot-api-failure branch January 28, 2022 17:24
joegallo added a commit that referenced this pull request Jan 28, 2022
joegallo added a commit that referenced this pull request Jan 28, 2022
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Jan 31, 2022
* upstream/master: (100 commits)
  Avoid duplicate _type fields in v7 compat layer (elastic#83239)
  Bump bundled JDK to 17.0.2+8 (elastic#83243)
  [DOCS] Correct header syntax (elastic#83275)
  Add unit tests for indices.recovery.max_bytes_per_sec default values (elastic#83261)
  [DOCS] Add note that write indices are not replicated (elastic#82997)
  Add notes on indexing to kNN search guide (elastic#83188)
  Fix get-snapshot-api :docs:integTest (elastic#83273)
  FilterPathBasedFilter support match fieldname with dot (elastic#83178)
  Fix compilation issues in example-plugins (elastic#83258)
  fix ClusterStateListener javadoc (elastic#83246)
  Speed up Building Indices Lookup in Metadata (elastic#83241)
  Mute whole suite for elastic#82502 (elastic#83252)
  Make PeerFinder log messages happier (elastic#83222)
  [Docs] Add supported _terms_enum field types (elastic#83244)
  Add an aggregator for IPv4 and IPv6 subnets (elastic#82410)
  [CI] Fix 70_time_series/default sort yaml test failures (elastic#83217)
  Update test-failure Issue Template to include "needs:triage" label elastic#83226
  Add an index->step cache to the PolicyStepsRegistry (elastic#82316)
  Improve support for joda datetime to java datetime transition in Painless (elastic#83099)
  Fix joda migration for week based methods in Painless (elastic#83232)
  ...

# Conflicts:
#	x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/v2/TransportRollupAction.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. >test Issues or PRs that are addressing/adding tests v7.17.0 v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants