fix: logback fix for NiFi / NiFi 2.6 build fix#1314
Merged
Conversation
eaba5e1 to
792428a
Compare
…into spike/nifi-patch-logback
792428a to
c4677bf
Compare
Member
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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>.