Skip to content

Commit 7a49f3b

Browse files
authored
Merge branch 'main' into otlp-tsdb-empty-endpoint
2 parents 1b2b7b3 + 049d1f3 commit 7a49f3b

File tree

23 files changed

+92
-97
lines changed

23 files changed

+92
-97
lines changed

build-tools-internal/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ reactive_streams = 1.0.4
2222

2323
antlr4 = 4.13.1
2424
# bouncy castle version for non-fips. fips jars use a different version
25-
bouncycastle=1.78.1
25+
bouncycastle=1.79
2626
# used by security and idp (need to be in sync due to cross-dependency in testing)
2727
opensaml = 4.3.0
2828

docs/changelog/132853.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 132853
2+
summary: Bump bcpkix version
3+
area: Security
4+
type: upgrade
5+
issues: []

gradle/verification-metadata.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,6 +3610,11 @@
36103610
<sha256 value="4b48ea084e5232b9d79ebca1887b9de037b124931807cd60710748c2aee08cc9" origin="Generated by Gradle"/>
36113611
</artifact>
36123612
</component>
3613+
<component group="org.bouncycastle" name="bcpkix-jdk18on" version="1.79">
3614+
<artifact name="bcpkix-jdk18on-1.79.jar">
3615+
<sha256 value="3639a24ddf9ba4b7eba0659b44770e91eba816421888e571f285aadefe532cd6" origin="Generated by Gradle"/>
3616+
</artifact>
3617+
</component>
36133618
<component group="org.bouncycastle" name="bcprov-jdk15on" version="1.60">
36143619
<artifact name="bcprov-jdk15on-1.60.jar">
36153620
<sha256 value="7f1a0e6badab38666f8467a9a0ee96656b2f8ec8623867ed34f3cdc173b7ee07" origin="Generated by Gradle"/>
@@ -3625,6 +3630,11 @@
36253630
<sha256 value="add5915e6acfc6ab5836e1fd8a5e21c6488536a8c1f21f386eeb3bf280b702d7" origin="Generated by Gradle"/>
36263631
</artifact>
36273632
</component>
3633+
<component group="org.bouncycastle" name="bcprov-jdk18on" version="1.79">
3634+
<artifact name="bcprov-jdk18on-1.79.jar">
3635+
<sha256 value="0d81ecc3124536b539bce9aa3fe9621b7f84c9cee371b635a5b31c78b79ab1da" origin="Generated by Gradle"/>
3636+
</artifact>
3637+
</component>
36283638
<component group="org.bouncycastle" name="bctls-fips" version="1.0.19">
36293639
<artifact name="bctls-fips-1.0.19.jar">
36303640
<sha256 value="a0bbad2eb5268f1baa08f0e2e69cb61cd292e19e73595c620d586d335d97d1a8" origin="Generated by Gradle"/>
@@ -3635,6 +3645,11 @@
36353645
<sha256 value="d9fa56f97b0f761ce3bc8d9d74c5d7137a987bf5bd3abfe1003f9bafa45a1d2f" origin="Generated by Gradle"/>
36363646
</artifact>
36373647
</component>
3648+
<component group="org.bouncycastle" name="bcutil-jdk18on" version="1.79">
3649+
<artifact name="bcutil-jdk18on-1.79.jar">
3650+
<sha256 value="c70b88ada58938cbc2f005d40329054078bcfa1149e6ffc03e9242eb6ab21836" origin="Generated by Gradle"/>
3651+
</artifact>
3652+
</component>
36383653
<component group="org.carrot2" name="morfologik-fsa" version="2.1.1">
36393654
<artifact name="morfologik-fsa-2.1.1.jar">
36403655
<sha256 value="c91db33831762a305d6d30fbd4230d9e57798706e25c35222c9bee1eb3e00109" origin="Generated by Gradle"/>

muted-tests.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -600,15 +600,6 @@ tests:
600600
- class: org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT
601601
method: testGroupBySubset
602602
issue: https://github.com/elastic/elasticsearch/issues/133220
603-
- class: org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests
604-
method: testSortedDocValuesSingleUniqueValue
605-
issue: https://github.com/elastic/elasticsearch/issues/133221
606-
- class: org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests
607-
method: testSortedNumberMergeAwayAllValuesWithSkipper
608-
issue: https://github.com/elastic/elasticsearch/issues/133223
609-
- class: org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormatTests
610-
method: testSortedSetDocValuesWithSkipperSmall
611-
issue: https://github.com/elastic/elasticsearch/issues/133224
612603
- class: org.elasticsearch.xpack.esql.action.RandomizedTimeSeriesIT
613604
method: testGroupByNothing
614605
issue: https://github.com/elastic/elasticsearch/issues/133225

qa/packaging/src/test/java/org/elasticsearch/packaging/test/ArchiveTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ public void test50AutoConfigurationFailsWhenCertificatesNotGenerated() throws Ex
212212
FileUtils.assertPathsDoNotExist(installation.data);
213213
Path tempDir = createTempDir("bc-backup");
214214
Files.move(
215-
installation.lib.resolve("tools").resolve("security-cli").resolve("bcprov-jdk18on-1.78.1.jar"),
216-
tempDir.resolve("bcprov-jdk18on-1.78.1.jar")
215+
installation.lib.resolve("tools").resolve("security-cli").resolve("bcprov-jdk18on-1.79.jar"),
216+
tempDir.resolve("bcprov-jdk18on-1.79.jar")
217217
);
218218
Shell.Result result = runElasticsearchStartCommand(null, false, false);
219219
assertElasticsearchFailure(result, "java.lang.NoClassDefFoundError: org/bouncycastle/", null);
220220
Files.move(
221-
tempDir.resolve("bcprov-jdk18on-1.78.1.jar"),
222-
installation.lib.resolve("tools").resolve("security-cli").resolve("bcprov-jdk18on-1.78.1.jar")
221+
tempDir.resolve("bcprov-jdk18on-1.79.jar"),
222+
installation.lib.resolve("tools").resolve("security-cli").resolve("bcprov-jdk18on-1.79.jar")
223223
);
224224
Platforms.onWindows(() -> sh.chown(installation.config));
225225
FileUtils.rm(tempDir);

server/src/test/java/org/elasticsearch/index/codec/tsdb/es819/ES819TSDBDocValuesFormatTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class ES819TSDBDocValuesFormatTests extends ES87TSDBDocValuesFormatTests
6666
private final Codec codec = new Elasticsearch900Lucene101Codec() {
6767

6868
final ES819TSDBDocValuesFormat docValuesFormat = new ES819TSDBDocValuesFormat(
69-
ESTestCase.randomIntBetween(1, 4096),
69+
ESTestCase.randomIntBetween(2, 4096),
7070
ESTestCase.randomIntBetween(1, 512),
7171
random().nextBoolean()
7272
);

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/AsyncWaitStep.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
import org.elasticsearch.client.internal.Client;
1010
import org.elasticsearch.cluster.ProjectState;
11+
import org.elasticsearch.cluster.metadata.IndexMetadata;
1112
import org.elasticsearch.cluster.metadata.ProjectId;
1213
import org.elasticsearch.core.Nullable;
1314
import org.elasticsearch.core.TimeValue;
14-
import org.elasticsearch.index.Index;
1515
import org.elasticsearch.xcontent.ToXContentObject;
1616

1717
/**
@@ -40,7 +40,7 @@ protected Client getClient(ProjectId projectId) {
4040
return client.projectClient(projectId);
4141
}
4242

43-
public abstract void evaluateCondition(ProjectState state, Index index, Listener listener, TimeValue masterTimeout);
43+
public abstract void evaluateCondition(ProjectState state, IndexMetadata indexMetadata, Listener listener, TimeValue masterTimeout);
4444

4545
public interface Listener {
4646

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/SegmentCountStep.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.action.support.DefaultShardOperationFailedException;
1616
import org.elasticsearch.client.internal.Client;
1717
import org.elasticsearch.cluster.ProjectState;
18+
import org.elasticsearch.cluster.metadata.IndexMetadata;
1819
import org.elasticsearch.cluster.routing.ShardRouting;
1920
import org.elasticsearch.common.Strings;
2021
import org.elasticsearch.core.TimeValue;
@@ -56,7 +57,8 @@ public int getMaxNumSegments() {
5657
}
5758

5859
@Override
59-
public void evaluateCondition(ProjectState state, Index index, Listener listener, TimeValue masterTimeout) {
60+
public void evaluateCondition(ProjectState state, IndexMetadata indexMetadata, Listener listener, TimeValue masterTimeout) {
61+
Index index = indexMetadata.getIndex();
6062
getClient(state.projectId()).admin()
6163
.indices()
6264
.segments(new IndicesSegmentsRequest(index.getName()), ActionListener.wrap(response -> {

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitForFollowShardTasksStep.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.elasticsearch.cluster.metadata.IndexMetadata;
1313
import org.elasticsearch.common.Strings;
1414
import org.elasticsearch.core.TimeValue;
15-
import org.elasticsearch.index.Index;
1615
import org.elasticsearch.xcontent.ParseField;
1716
import org.elasticsearch.xcontent.ToXContentObject;
1817
import org.elasticsearch.xcontent.XContentBuilder;
@@ -39,16 +38,15 @@ public boolean isRetryable() {
3938
}
4039

4140
@Override
42-
public void evaluateCondition(ProjectState state, Index index, Listener listener, TimeValue masterTimeout) {
43-
IndexMetadata indexMetadata = state.metadata().index(index);
41+
public void evaluateCondition(ProjectState state, IndexMetadata indexMetadata, Listener listener, TimeValue masterTimeout) {
4442
Map<String, String> customIndexMetadata = indexMetadata.getCustomData(CCR_METADATA_KEY);
4543
if (customIndexMetadata == null) {
4644
listener.onResponse(true, null);
4745
return;
4846
}
4947

5048
FollowStatsAction.StatsRequest request = new FollowStatsAction.StatsRequest();
51-
request.setIndices(new String[] { index.getName() });
49+
request.setIndices(new String[] { indexMetadata.getIndex().getName() });
5250
getClient(state.projectId()).execute(
5351
FollowStatsAction.INSTANCE,
5452
request,

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/WaitForNoFollowersStep.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
import org.elasticsearch.action.admin.indices.stats.ShardStats;
1616
import org.elasticsearch.client.internal.Client;
1717
import org.elasticsearch.cluster.ProjectState;
18+
import org.elasticsearch.cluster.metadata.IndexMetadata;
1819
import org.elasticsearch.cluster.metadata.ProjectId;
1920
import org.elasticsearch.core.TimeValue;
20-
import org.elasticsearch.index.Index;
2121
import org.elasticsearch.protocol.xpack.XPackInfoRequest;
2222
import org.elasticsearch.protocol.xpack.XPackInfoResponse;
2323
import org.elasticsearch.xpack.core.action.XPackInfoFeatureAction;
@@ -53,7 +53,7 @@ public boolean isRetryable() {
5353
}
5454

5555
@Override
56-
public void evaluateCondition(ProjectState state, Index index, Listener listener, TimeValue masterTimeout) {
56+
public void evaluateCondition(ProjectState state, IndexMetadata indexMetadata, Listener listener, TimeValue masterTimeout) {
5757
XPackInfoRequest xPackInfoRequest = new XPackInfoRequest();
5858
xPackInfoRequest.setCategories(EnumSet.of(XPackInfoRequest.Category.FEATURES));
5959
getClient(state.projectId()).execute(XPackInfoFeatureAction.CCR, xPackInfoRequest, ActionListener.wrap((xPackInfoResponse) -> {
@@ -62,14 +62,13 @@ public void evaluateCondition(ProjectState state, Index index, Listener listener
6262
listener.onResponse(true, null);
6363
return;
6464
}
65-
leaderIndexCheck(state.projectId(), index, listener);
65+
leaderIndexCheck(state.projectId(), indexMetadata.getIndex().getName(), listener);
6666
}, listener::onFailure));
6767
}
6868

69-
private void leaderIndexCheck(ProjectId projectId, Index index, Listener listener) {
69+
private void leaderIndexCheck(ProjectId projectId, String indexName, Listener listener) {
7070
IndicesStatsRequest request = new IndicesStatsRequest();
7171
request.clear();
72-
String indexName = index.getName();
7372
request.indices(indexName);
7473

7574
getClient(projectId).admin().indices().stats(request, ActionListener.wrap((response) -> {

0 commit comments

Comments
 (0)