Skip to content

Changing HeaderWarning to always use 299 as the warning code#80304

Merged
masseyke merged 4 commits intoelastic:masterfrom
masseyke:fix/setting-deprecation-log-level-correctly-simpler
Nov 8, 2021
Merged

Changing HeaderWarning to always use 299 as the warning code#80304
masseyke merged 4 commits intoelastic:masterfrom
masseyke:fix/setting-deprecation-log-level-correctly-simpler

Conversation

@masseyke
Copy link
Copy Markdown
Member

@masseyke masseyke commented Nov 3, 2021

This commit changes the deprecation logger so that all messages (critical or warning) are written out with "299" as
the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In #79107 we mistakenly began logging warning-level
messages with the 300 code, which is not valid in the RFC.

@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@masseyke masseyke changed the title Changing HeaderWaring to always use 299 as the warning code Changing HeaderWarning to always use 299 as the warning code Nov 3, 2021
@masseyke masseyke requested a review from pgomulka November 4, 2021 18:39
@masseyke
Copy link
Copy Markdown
Member Author

masseyke commented Nov 4, 2021

@elasticmachine run elasticsearch-ci/part-2

Copy link
Copy Markdown
Contributor

@pgomulka pgomulka left a comment

Choose a reason for hiding this comment

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

LGTM

@masseyke masseyke merged commit 08df1cb into elastic:master Nov 8, 2021
@masseyke masseyke deleted the fix/setting-deprecation-log-level-correctly-simpler branch November 8, 2021 15:47
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Nov 8, 2021
…#80304)

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In elastic#79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
8.0
7.16 Commit could not be cherrypicked due to conflicts

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

masseyke added a commit to masseyke/elasticsearch that referenced this pull request Nov 8, 2021
…#80304)

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In elastic#79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
…#80501)

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In #79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.
masseyke added a commit that referenced this pull request Nov 8, 2021
…#80503)

* Changing HeaderWarning to always use 299 as the warning code (#80304)

This commit changes the deprecation logger so that all messages (critical or warning) are written
out with "299" as the level at the beginning of the header in order to be compliant with
https://www.rfc-editor.org/rfc/rfc7234.html#section-5.5.7. In #79107 we mistakenly began logging
warning-level messages with the 300 code, which is not valid in the RFC.

* fixing compilation errors from merge
arteam added a commit to arteam/elasticsearch that referenced this pull request Mar 13, 2025
…warning

This setting is not getting removed in ES 9.0, so its usage should not generate a critical deprecation warning.

`TransportServiceLifecycleTests` already uses `assertWarnings` instead of `assertCriticalWarnings` and we
don't distinguish between warning levels in assertions (See elastic#80304)

See elastic#109236
See ES-11224
arteam added a commit that referenced this pull request Mar 14, 2025
…warning (#124788)

This setting is not getting removed in ES 9.0, so its usage should not generate a critical deprecation warning.

`TransportServiceLifecycleTests` already uses `assertWarnings` instead of `assertCriticalWarnings` and we
don't distinguish between warning levels in assertions (See #80304)

See #109236
See ES-11224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants