Skip to content

Conversation

@kkrik-es
Copy link
Contributor

The synthetic source provider needs to use the injected logsdb mode setting to detect that synthetic source is to be used.

This is an alternative to #115397, more localized but requires creating another copy of all template and request settings.

@kkrik-es kkrik-es added >non-issue auto-backport Automatically create backport pull requests when merged Team:StorageEngine :StorageEngine/Logs You know, for Logs v8.17.0 labels Oct 23, 2024
@kkrik-es kkrik-es self-assigned this Oct 23, 2024
@kkrik-es kkrik-es changed the title Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceI… Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider Oct 23, 2024
@kkrik-es kkrik-es marked this pull request as ready for review October 23, 2024 16:15
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kkrik-es! I left one comment, otherwise LGTM 👍

);
private static final String LOGS_PATTERN = "logs-*-*";
private volatile boolean isLogsdbEnabled;
private boolean isLogsdbEnabled;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this need field needs to stay volatile? It can be updated via cluster settings update at runtime.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry, unintended.

@kkrik-es kkrik-es merged commit 6f7bd55 into elastic:main Oct 24, 2024
16 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

The backport operation could not be completed due to the following error:

An unexpected error occurred when attempting to backport this PR.

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 115437

kkrik-es added a commit to kkrik-es/elasticsearch that referenced this pull request Oct 24, 2024
…ndexSettingsProvider (elastic#115437)

* Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider

* update

(cherry picked from commit 6f7bd55)
@kkrik-es
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.x

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Oct 24, 2024
…ndexSettingsProvider (#115437) (#115495)

* Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider

* update

(cherry picked from commit 6f7bd55)
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Oct 24, 2024
…ndexSettingsProvider (elastic#115437)

* Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider

* update
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
…ndexSettingsProvider (elastic#115437)

* Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider

* update
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
…ndexSettingsProvider (elastic#115437)

* Use settings from LogsdbIndexModeSettingsProvider in SyntheticSourceIndexSettingsProvider

* update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged backport pending >non-issue :StorageEngine/Logs You know, for Logs Team:StorageEngine v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants