Skip to content

Commit

Permalink
Update synthetic source legacy license cutoff date. (elastic#117658)
Browse files Browse the repository at this point in the history
Update default cutoff date from 12-12-2024T00:00 UTC to 01-02-2025T00:00 UTC.
  • Loading branch information
martijnvg committed Nov 28, 2024
1 parent e09168d commit 00fd9d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class SyntheticSourceLicenseService {
// You can only override this property if you received explicit approval from Elastic.
static final String CUTOFF_DATE_SYS_PROP_NAME = "es.mapping.synthetic_source_fallback_to_stored_source.cutoff_date_restricted_override";
private static final Logger LOGGER = LogManager.getLogger(SyntheticSourceLicenseService.class);
static final long DEFAULT_CUTOFF_DATE = LocalDateTime.of(2024, 12, 12, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();
static final long DEFAULT_CUTOFF_DATE = LocalDateTime.of(2025, 2, 1, 0, 0).toInstant(ZoneOffset.UTC).toEpochMilli();

/**
* A setting that determines whether source mode should always be stored source. Regardless of licence.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void testGetAdditionalIndexSettingsTsdb() throws IOException {
}

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

0 comments on commit 00fd9d6

Please sign in to comment.