Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump org.apache.logging.log4j:log4j-core from 2.20.0 to 2.21.0 #4253

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 16, 2023

Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.21.0.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependency-upgrade A dependency upgrade java Pull requests that update Java code labels Oct 16, 2023
@dependabot dependabot bot added this to the 1.next milestone Oct 16, 2023
jonatan-ivanov added a commit that referenced this pull request Oct 20, 2023
In case of async loggers, the MetricsFilter#filter method is/was called
multiple times. Because of this, a check was introduced in gh-2183
assuming that if the event has the isEndOfBatch flag set to true, that
is the last filter method call for that event.
Unfortunately, it turned out that this approach did not work, since it
did not just filter out the unwanted multiple calls on one event but it
also filtered out all the filter method calls on events that were not at
the end of the async batch. So Log4j2Metrics counted batches of events,
not the individual events.
Fortunately multiple filter invocations was fixed in Log4j2,
see apache/logging-log4j2#1550 and apache/logging-log4j2#1552.
Since now there will be only one filter method call,
the check introduced in gh-2183 can and should be removed (the call to
the filter method is before the isEndOfBatch flag is set so
the flag will always return false).

Closes gh-2176
See gh-2183
See gh-4253
@jonatan-ivanov jonatan-ivanov force-pushed the dependabot/gradle/main/org.apache.logging.log4j-log4j-core-2.21.0 branch from c292f3d to faca23e Compare October 20, 2023 23:12
@jonatan-ivanov jonatan-ivanov modified the milestones: 1.next, 1.12.0 Oct 20, 2023
jonatan-ivanov added a commit that referenced this pull request Oct 20, 2023
Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.21.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Closes gh-4253

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
jonatan-ivanov added a commit that referenced this pull request Oct 20, 2023
In case of async loggers, the MetricsFilter#filter method is/was called
multiple times. Because of this, a check was introduced in gh-2183
assuming that if the event has the isEndOfBatch flag set to true, that
is the last filter method call for that event.
Unfortunately, it turned out that this approach did not work, since it
did not just filter out the unwanted multiple calls on one event but it
also filtered out all the filter method calls on events that were not at
the end of the async batch. So Log4j2Metrics counted batches of events,
not the individual events.
Fortunately multiple filter invocations was fixed in Log4j2,
see apache/logging-log4j2#1550 and apache/logging-log4j2#1552.
Since now there will be only one filter method call,
the check introduced in gh-2183 can and should be removed (the call to
the filter method is before the isEndOfBatch flag is set so
the flag will always return false).

Closes gh-2176
See gh-2183
See gh-4253
@jonatan-ivanov jonatan-ivanov force-pushed the dependabot/gradle/main/org.apache.logging.log4j-log4j-core-2.21.0 branch from faca23e to cf12321 Compare October 20, 2023 23:16
jonatan-ivanov added a commit that referenced this pull request Oct 20, 2023
In case of async loggers, the MetricsFilter#filter method is/was called
multiple times. Because of this, a check was introduced in gh-2183
assuming that if the event has the isEndOfBatch flag set to true, that
is the last filter method call for that event.
Unfortunately, it turned out that this approach did not work, since it
did not just filter out the unwanted multiple calls on one event but it
also filtered out all the filter method calls on events that were not at
the end of the async batch. So Log4j2Metrics counted batches of events,
not the individual events.
Fortunately multiple filter invocations was fixed in Log4j2,
see apache/logging-log4j2#1550 and apache/logging-log4j2#1552.
Since now there will be only one filter method call,
the check introduced in gh-2183 can and should be removed (the call to
the filter method is before the isEndOfBatch flag is set so
the flag will always return false).

Closes gh-2176
See gh-2183
See gh-4253
@jonatan-ivanov jonatan-ivanov force-pushed the dependabot/gradle/main/org.apache.logging.log4j-log4j-core-2.21.0 branch from cf12321 to 61b3074 Compare October 20, 2023 23:24
@jonatan-ivanov
Copy link
Member

I think we might need to backport these changes to 1.9.x, see: #2176 (comment)

@jonatan-ivanov
Copy link
Member

It seems 2.21.1 is released but either dependabot was not triggered or my commit on the branch confuses it.

dependabot bot and others added 2 commits October 25, 2023 13:03
Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.21.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Closes gh-4253

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
In case of async loggers, the MetricsFilter#filter method is/was called
multiple times. Because of this, a check was introduced in gh-2183
assuming that if the event has the isEndOfBatch flag set to true, that
is the last filter method call for that event.
Unfortunately, it turned out that this approach did not work, since it
did not just filter out the unwanted multiple calls on one event but it
also filtered out all the filter method calls on events that were not at
the end of the async batch. So Log4j2Metrics counted batches of events,
not the individual events.
Fortunately multiple filter invocations was fixed in Log4j2,
see apache/logging-log4j2#1550 and apache/logging-log4j2#1552.
Since now there will be only one filter method call,
the check introduced in gh-2183 can and should be removed (the call to
the filter method is before the isEndOfBatch flag is set so
the flag will always return false).

Closes gh-2176
See gh-2183
See gh-4253
@jonatan-ivanov jonatan-ivanov force-pushed the dependabot/gradle/main/org.apache.logging.log4j-log4j-core-2.21.0 branch from 61b3074 to 02584ef Compare October 25, 2023 20:04
@jonatan-ivanov jonatan-ivanov merged commit 66f59e1 into main Oct 25, 2023
7 checks passed
jonatan-ivanov added a commit that referenced this pull request Oct 25, 2023
Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.21.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Closes gh-4253

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jonatan Ivanov <jonatan.ivanov@gmail.com>
@jonatan-ivanov jonatan-ivanov deleted the dependabot/gradle/main/org.apache.logging.log4j-log4j-core-2.21.0 branch October 25, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency-upgrade A dependency upgrade java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant