Skip to content

Commit 1fecab1

Browse files
authored
Update synthetic source cutoff date (#118069)
Updating from 01-02-2025T00:00:00UTC to 04-02-2025T00:00:00UTC
1 parent 422eb1a commit 1fecab1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

x-pack/plugin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/SyntheticSourceLicenseService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class SyntheticSourceLicenseService {
2929
// You can only override this property if you received explicit approval from Elastic.
3030
static final String CUTOFF_DATE_SYS_PROP_NAME = "es.mapping.synthetic_source_fallback_to_stored_source.cutoff_date_restricted_override";
3131
private static final Logger LOGGER = LogManager.getLogger(SyntheticSourceLicenseService.class);
32-
static final long DEFAULT_CUTOFF_DATE = LocalDateTime.of(2025, 2, 1, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
32+
static final long DEFAULT_CUTOFF_DATE = LocalDateTime.of(2025, 2, 4, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
3333

3434
/**
3535
* A setting that determines whether source mode should always be stored source. Regardless of licence.

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/LegacyLicenceIntegrationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ public void testSyntheticSourceUsageWithLegacyLicense() {
6969
}
7070

7171
public void testSyntheticSourceUsageWithLegacyLicensePastCutoff() throws Exception {
72-
long startPastCutoff = LocalDateTime.of(2025, 11, 12, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
72+
// One day after default cutoff date
73+
long startPastCutoff = LocalDateTime.of(2025, 2, 5, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
7374
putLicense(createGoldOrPlatinumLicense(startPastCutoff));
7475
ensureGreen();
7576

x-pack/plugin/logsdb/src/test/java/org/elasticsearch/xpack/logsdb/SyntheticSourceIndexSettingsProviderLegacyLicenseTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testGetAdditionalIndexSettingsTsdb() throws IOException {
9898
}
9999

100100
public void testGetAdditionalIndexSettingsTsdbAfterCutoffDate() throws Exception {
101-
long start = LocalDateTime.of(2025, 2, 2, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
101+
long start = LocalDateTime.of(2025, 2, 5, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
102102
License license = createGoldOrPlatinumLicense(start);
103103
long time = LocalDateTime.of(2024, 12, 31, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
104104
var licenseState = new XPackLicenseState(() -> time, new XPackLicenseStatus(license.operationMode(), true, null));

0 commit comments

Comments
 (0)