-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Zen2] Support rolling upgrades from Zen1 #35737
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
Merged
DaveCTurner
merged 90 commits into
elastic:master
from
DaveCTurner:2018-11-19-rolling-upgrade-to-zen2
Dec 8, 2018
Merged
Changes from 8 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
34ea2b0
[Zen2] Support rolling upgrades from Zen1
DaveCTurner 1ec1f8b
CheckStyle
DaveCTurner 32a3d82
Moar test
DaveCTurner bbb700f
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 0678ebe
Post-merge fixup
DaveCTurner 48888e0
Bogus assertion
DaveCTurner bb7a04c
Avoid problematic case
DaveCTurner 7eb0137
Add restart tests as well as migration ones
DaveCTurner 5595d2b
Imports
DaveCTurner 7ea3769
Better restart tests
DaveCTurner 6c3bb69
Must claim unknown version
DaveCTurner abe570e
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner c83bb34
Suppress exceptions during upgrade bootstrap
DaveCTurner 04208ab
Fake ping ID 0 for remote pings
DaveCTurner 491349a
Use FAKE_PING_ID to describe the situation
DaveCTurner b218215
Imports
DaveCTurner 98e0882
Add TODOs
DaveCTurner a2d609d
Whitespace
DaveCTurner ae2b7fb
Revert bootstrapping condition
DaveCTurner 5f5aeff
Revert "Revert bootstrapping condition"
DaveCTurner 980e1a3
Set default for use_zen2 to true
DaveCTurner c1b69aa
Wait for master election before restarting node
DaveCTurner 14256d0
Imports
DaveCTurner 63bbe70
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner fd5ce9f
Bah
DaveCTurner ea2cb3d
Don't use ZEN2 in InternalTestClusterTests yet
DaveCTurner 59c1083
Add bootstrapping parameter
DaveCTurner 03cd1bb
Need to configure file-based discovery
DaveCTurner 59b8e91
Don't use Zen2 in CCR integ tests (yet)
DaveCTurner bdd13ac
Another cluster needing file-based discovery
DaveCTurner bf614ce
File-based discovery should not be using settings-based discovery
DaveCTurner 249231c
Suppress election scheduling on non-master nodes
DaveCTurner fd11436
Do not activate discovery upgrade service if we have already left term 0
DaveCTurner 472615a
Add assertions and comment
DaveCTurner fd23114
Tidy up
DaveCTurner 0c2c14e
Unused method
DaveCTurner af70cda
Be tolerant of version mismatches in compatibility mode
DaveCTurner a1e393f
Fix comment, no longer a TODO
DaveCTurner 689dbd8
Only elect master-eligible nodes
DaveCTurner 0b582a3
Nonsense, it's fine
DaveCTurner 1090db8
Update default for USE_ZEN2 to true
DaveCTurner 48eb72c
Cannot request pre-votes from Zen1 nodes, nor include them in the con…
DaveCTurner 0d40f93
Revert "Cannot request pre-votes from Zen1 nodes, nor include them in…
DaveCTurner 63432f3
Cannot request pre-votes from Zen1 nodes, nor include them in the con…
DaveCTurner ace9194
Don't apply USE_ZEN2 if not using TestZenDiscovery
DaveCTurner 126b4b4
Manipulate voting tombstones when restarting nodes in a mixed cluster
DaveCTurner 71f2b03
Don't fiddle with tombstones when there's only 1 Zen2 node
DaveCTurner c93c05a
Revert - we check that the cluster state is consistent, and this fails
DaveCTurner 2de0feb
Extend CoordinatorTests to support master-ineligible nodes
DaveCTurner 7bdc19a
Make the use of Zen2 a test-suite-wide property
DaveCTurner 1b09320
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner d976106
Merge branch '2018-11-19-default-to-zen2-in-tests' into 2018-11-19-ro…
DaveCTurner a404c45
Merge branch '2018-11-28-only-elect-master-eligible-nodes' into 2018-…
DaveCTurner 6cc6c8b
Merge branch '2018-11-19-rolling-upgrade-to-zen2' of github.com:DaveC…
DaveCTurner 1055e64
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 7c4adc1
Unnecessary tests
DaveCTurner f078d9a
Add tests for start-all-stop-all migrations
DaveCTurner fe51316
Zen2 cluster should reject publications from Zen1
DaveCTurner 2499fe1
Ignore ResourceAlreadyExistsException
DaveCTurner 55841ab
Revert "Ignore ResourceAlreadyExistsException"
DaveCTurner eeef3bd
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 82a28a6
Merge branch 'zen2' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 2e9c084
Merge branch 'master' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner e95c0bf
Fixup for rename
DaveCTurner 6dd133a
Revert "Zen2 cluster should reject publications from Zen1"
DaveCTurner 7f211d4
Un-revert the useful bits
DaveCTurner d9c1ca4
Actually, this is fine, we might have bumped a term (e.g. due to foll…
DaveCTurner 13f71c5
Line length
DaveCTurner 4ec0cec
Merge branch 'master' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 67ac92e
_rolling_ upgrade
DaveCTurner c01216b
Revert
DaveCTurner 5d11689
Revert
DaveCTurner 0958cdb
Don't send PeersRequest to local node
DaveCTurner b0ab023
Merge branch 'master' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 3435c73
Horrible hack to force Zen1 nodes not to elect Zen2 masters
DaveCTurner d5ba1c7
Don't send incomprehensible messages from the future
DaveCTurner 1cfe428
Maybe more shards
DaveCTurner 4b7b899
Compile error
DaveCTurner a96aa91
Simplify testMixedClusterFormation and avoid the 1+1 case
DaveCTurner d0a23d4
Fewer devices
DaveCTurner ed0a5ca
Randomise shards not nodes, d'oh
DaveCTurner 497c5cf
Merge branch 'master' into 2018-11-19-rolling-upgrade-to-zen2
DaveCTurner 5d2ba53
static
DaveCTurner d1702b4
Won't do this TODO
DaveCTurner 003b218
promote logging
DaveCTurner 212049c
Add test that impossibly high id is impossibly high
DaveCTurner 3da03f7
No TestLogging
DaveCTurner 49a41d1
Don't run all the tests
DaveCTurner af11d61
Inline
DaveCTurner 053d746
Only be lenient if the master changes
DaveCTurner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.