Commit 4735260
authored
Bump TrialLicenseVersion to allow starting new trial on 9.0 (elastic#120198)
You are allowed to initiate a trial only if your cluster has not already
activated a trial for the current major product version. For example, if
you have already activated a trial for v6.0, you cannot start a new
trial until v7.0.
`LicensesMetadata` is a ClusterState custom that contains the license
information for a cluster. If the cluster has exercised a trial there is
a trial version field populated. During a major upgrade, we want to
allow users to run a new trial to test the features on the new major.
This PR updates the trial version in the license to allow to start a new
trial on 9.0.
When 9.0 is released we'll have no clusters that has already exercised
the trial so this PR also removes some of the BWC handling that was
added when [trial license version was decoupled from stack
version](elastic#100169).1 parent 0317c1c commit 4735260
File tree
3 files changed
+13
-19
lines changed- docs/changelog
- x-pack/plugin/core/src
- main/java/org/elasticsearch/license/internal
- test/java/org/elasticsearch/license/internal
3 files changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
| |||
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 84 | | |
92 | 85 | | |
93 | 86 | | |
| |||
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
| 36 | + | |
41 | 37 | | |
42 | | - | |
43 | | - | |
| 38 | + | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| |||
0 commit comments