-
-
Notifications
You must be signed in to change notification settings - Fork 6
fix: logback fix for NiFi / NiFi 2.6 build fix #1314
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
Conversation
eaba5e1 to
792428a
Compare
…into spike/nifi-patch-logback
792428a to
c4677bf
Compare
|
Can confirm the corruption stops. My test setup was to run a HandleHttpRequest and HandleHttpResponse pair of processor, and watch the logs: tail -f nifi.log4j.xml | grep timestampThen rapidly Before the fix, the corruption became quickly apparent. After the fix, I did the same test for longer and was not able to see any corrupted logs. |
…into spike/nifi-patch-logback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes: stackabletech/nifi-operator#856
Fixes: stackabletech/issues#779
Description
This PR contains two changes:
A fix to set the
esbuildversion to 0.25.10: For some reason, npm tries to use a newer version ofesbuildthan the version in the lock file. I suspect this might be related to how npm handles optional platform specific dependencies in lock files. I can't really say for sure though, and to avoid diving into the details of how npm works under the hood I chose the easier way by just settingesbuildto a fixed version, so our primary goal of getting back to a working build that uses the same packages as the original one is achieved. Theesbuildversion is set to 0.25.10 now to prevent npm from trying to select a newer version.A patch for logback to prevent a race condition, this should fix the majority of problems mentioned in Corruption in nifi.log4j.xml nifi-operator#856
Smoke test for NiFi 2.4.0, 2.6.0 and 1.28.0 ran successfully.
Definition of Done Checklist
Note
Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.
Please make sure all these things are done and tick the boxes
TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
See the output of
boilto retrieve the image manifest URI for<MANIFEST_URI>.