Conversation
…-DB-are-not-reflected-in-logs 65 Manual changes in DB are not reflected in logs
…ion-type 70 filter on operation type
…-owasp-add 67 and 54 maven update and issues after updated fixed
…n-Manager-is-closed 60 Close Workers when Manager is closed
…automatic-creation 64 added a log warning to highlight when a given database does not exist
…ng-of-field-names # Conflicts: # src/main/java/com/gravity9/mongocse/MongoConfig.java # src/test/java/com/gravity9/mongocse/ChangeStreamTest.java
There was a problem hiding this comment.
Summary
This PR merges changes from develop to main, including Maven dependency updates, Java 21 upgrade, OWASP dependency-check plugin setup, and improvements to MongoDB change stream error handling.
Critical Issue Found
1 critical logic error identified in MongoChangeStreamWorker.java that creates an infinite error loop when handling invalid resume tokens. The error recovery logic clears the token but the main processing loop continues attempting to resume with the cleared/invalid token.
Changes Overview
The PR includes:
- Java version upgrade: 17 → 21
- Maven plugin updates: Updated versions for surefire, checkstyle, PMD, spotbugs, and other plugins
- MongoDB driver update: 4.10.1 → 5.8.0
- New features: Added database existence warnings, field name filtering, operation type filtering
- Enhanced error handling: Non-resumable change stream error handling with token clearing
- Resource management: Proper cleanup of MongoClient in close() method
Please address the critical logic error before merging.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
67 maven update and issues after updated fixed
54 Set up org.owasp:dependency-check-maven plugin
65 Manual changes in DB are not reflected in logs
64 added a log warning to highlight when a given database does not exist
60 Close Workers when Manager is closed
69 filter on field name
70 filter on operation type