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

Add collectionName and databaseName attributes to MongoDbProvider #3467

Closed
wants to merge 28 commits into from

Conversation

jesmith17
Copy link
Contributor

@jesmith17 jesmith17 commented Feb 15, 2025

Ports #3322 to 2.x

@jesmith17
Copy link
Contributor Author

@vy I went ahead and did a new PR to merge with 2.x branch because the classes, projects, and packages already had changes in the 3.x stuff that did seem to make sense to back-port. So tried to just back-port the specific code for this change and leave the rest alone.

@vy
Copy link
Member

vy commented Feb 15, 2025 via email

Copy link

github-actions bot commented Feb 16, 2025

Job Requested goals Build Tool Version Build Outcome Build Scan®
build-macos-latest clean install 3.9.8 Build Scan PUBLISHED
build-ubuntu-latest clean install 3.9.8 Build Scan PUBLISHED
build-windows-latest clean install 3.9.8 Build Scan PUBLISHED
Generated by gradle/develocity-actions

Suvrat1629 and others added 2 commits February 16, 2025 09:29
This PR introduces improvements to `HttpAppender` and adds a new test class, `HttpAppenderBuilderTest`, to enhance test coverage.

The changes include:
 * Updating `HttpAppender` to improve validating behavior.
 * Adding HttpAppenderBuilderTest.java to verify the builder logic for HttpAppender.

Ensuring that missing configurations (e.g., URL, Layout) correctly log errors.

Co-authored-by: Piotr P. Karwasz <[email protected]>
@vy vy self-assigned this Feb 17, 2025
@vy vy added the appenders Affects one or more Appender plugins label Feb 17, 2025
@vy vy changed the title Add Collection Name and Database Name to the config Add collectionName and databaseName attributes to MongoDbProvider Feb 17, 2025
Copy link
Member

@vy vy left a comment

Choose a reason for hiding this comment

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

@jesmith17, pushed some minor fixes and dropped some remarks. I'd appreciate it if you can address them.

@vy
Copy link
Member

vy commented Feb 18, 2025 via email

@vy
Copy link
Member

vy commented Feb 18, 2025 via email

@jesmith17
Copy link
Contributor Author

@vy Just did a new clone of the full repo, into a new directory. Verified that it's the 2.x branch. Running ./mvnw install -DskipTests produced the following errror.

oshsmith@Joshs-Macbook-Air-2024 log4j-temp % ./mvnw install -DskipTests
Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised.
If you updated your Maven version, you need to update the specified distributionSha256Sum property.
joshsmith@Joshs-Macbook-Air-2024 log4j-temp %

even trying to run a command like ./mvnw --version returns the same error.

In trying to see if I could manually view the sha256 for the 3.9.8 download, it appears to also only offer a sha512.

Here is the content of my maven-wrapper.properties file included with the checkout. Ommitting the comments at the top for brevity.

distributionSha256Sum=8351955a9acf2f83c136c4eee0f6db894ab6265fdbe0a94b32a380307dbaa3e1
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
wrapperVersion=3.3.2
~

@ppkarwasz
Copy link
Contributor

@vy Just did a new clone of the full repo, into a new directory. Verified that it's the 2.x branch. Running ./mvnw install -DskipTests produced the following errror.

oshsmith@Joshs-Macbook-Air-2024 log4j-temp % ./mvnw install -DskipTests
Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised.
If you updated your Maven version, you need to update the specified distributionSha256Sum property.
joshsmith@Joshs-Macbook-Air-2024 log4j-temp %

Try removing the ~/.m2/wrapper folder. It is just a cache. In main we did have a script Maven Wrapper shell script, in 2.x we have the more recent only-script version. Maybe they are incompatible.

@jesmith17 jesmith17 requested a review from vy February 19, 2025 14:15
@jesmith17
Copy link
Contributor Author

@ppkarwasz
Removing the .mvn/wrapper folder all together just changes it to an error complaining that it can't find the maven-wrapper.properties.

./mvnw: line 114: ./.mvn/wrapper/maven-wrapper.properties: No such file or directory
cannot read distributionUrl property in ./.mvn/wrapper/maven-wrapper.properties
joshsmith@Joshs-Macbook-Air-2024 log4j-temp %

@ppkarwasz
Copy link
Contributor

Removing the .mvn/wrapper folder all together just changes it to an error complaining that it can't find the maven-wrapper.properties.

By ~/.m2/wrapper folder I meant the .m2/wrapper subfolder of your home directory. The problematic data is there and this is why the problem persists, even if you make a clean Git checkout.

clayburn and others added 3 commits February 19, 2025 16:14
* Publish build scans to develocity.apache.org

* Use `DEVELOCITY_ACCESS_KEY` to authenticate to `develocity.apache.org`
…j-parent (apache#3452)

* Bump org.apache.logging:logging-parent in /log4j-parent

Bumps [org.apache.logging:logging-parent](https://github.com/apache/logging-parent) from 11.3.0 to 12.0.0.
- [Release notes](https://github.com/apache/logging-parent/releases)
- [Commits](apache/logging-parent@rel/11.3.0...rel/12.0.0)

---
updated-dependencies:
- dependency-name: org.apache.logging:logging-parent
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Necessary fixes for `12.0.0` upgrade.

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piotr P. Karwasz <[email protected]>
@jesmith17
Copy link
Contributor Author

@ppkarwasz There is no ~/.m2/wrapper folder in my home mvn install. I just verified.

But even if that was the offending file then deleting the one in the code base wouldn't have trigger an error about the file missing as it would have found the file in my local home directory, correct?

@vy
Copy link
Member

vy commented Feb 19, 2025 via email

vy added a commit that referenced this pull request Feb 20, 2025
@vy
Copy link
Member

vy commented Feb 20, 2025

Couldn't merge due to missing signatures – squashed and committed in 07590bc.

@vy vy closed this Feb 20, 2025
@vy vy mentioned this pull request Feb 21, 2025
23 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appenders Affects one or more Appender plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants