NIFI-13722: Kerberos ticket renewal issue due static thread pool in Iceberg library (nifi-1.x)#9305
NIFI-13722: Kerberos ticket renewal issue due static thread pool in Iceberg library (nifi-1.x)#9305mark-bathori wants to merge 1 commit intoapache:support/nifi-1.xfrom
Conversation
| KerberosUser kerberosUser; | ||
| if (kerberosUserReference.get() == null) { | ||
| kerberosUser = kerberosUserService.createKerberosUser(); | ||
| } else { | ||
| kerberosUser = kerberosUserReference.get(); | ||
| } |
There was a problem hiding this comment.
Just call get() once
| KerberosUser kerberosUser; | |
| if (kerberosUserReference.get() == null) { | |
| kerberosUser = kerberosUserService.createKerberosUser(); | |
| } else { | |
| kerberosUser = kerberosUserReference.get(); | |
| } | |
| KerberosUser kerberosUser = kerberosUserReference.get() ; | |
| if (kerberosUser == null) { | |
| kerberosUser = kerberosUserService.createKerberosUser(); | |
| } |
| getLogger().error("Privileged action failed with kerberos user " + kerberosUser, e); | ||
| session.transfer(session.penalize(flowFile), REL_FAILURE); | ||
| if (!handleAuthErrors(e, session, context)) { | ||
| getLogger().error("Privileged action failed with kerberos user " + kerberosUser, e); |
There was a problem hiding this comment.
Use interpolation and not concatenation.
| getLogger().error("Privileged action failed with kerberos user " + kerberosUser, e); | |
| getLogger().error("Privileged action failed with kerberos user {}" , kerberosUser, e); |
|
Thanks @dan-s1 for the comments. This is a backport PR so these changes are already merged into the main branch. To keep the consistency between the two branch I would keep the changes as it is, but your requested changes could be done in a separate PR if necessary. |
turcsanyip
left a comment
There was a problem hiding this comment.
As per @mark-bathori comment, it is a backport PR and I would also keep it as it is.
Thanks @dan-s1 for your review comments, I overlooked them in the original review on the main branch. We can address them in a follow-up PR or next time when we touch the Iceberg processors.
+1 Merging this for now.
…ceberg library This closes #9305. Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org>
|
Merged. |
…ceberg library This closes apache#9305. Signed-off-by: Peter Turcsanyi <turcsanyi@apache.org> (cherry picked from commit a0ec730)
Summary
NIFI-13722
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation