Skip to content

NIFI-14732 Delete references to removed encrypted repo classes#10207

Merged
exceptionfactory merged 3 commits intoapache:mainfrom
jrsteinebrey:NIFI-14732-A
Aug 15, 2025
Merged

NIFI-14732 Delete references to removed encrypted repo classes#10207
exceptionfactory merged 3 commits intoapache:mainfrom
jrsteinebrey:NIFI-14732-A

Conversation

@jrsteinebrey
Copy link
Contributor

NIFI-14732 Delete references to removed classes:
EncryptedSequentialAccessWriteAheadLog
EncryptedWriteAheadProvenanceRepository

Summary

NIFI-14732

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-14732
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-14732

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Ran the NiFi service locally and ran a data flow.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21

Licensing

No changes

Documentation

  • Documentation formatting appears as expected in rendered files

 EncryptedSequentialAccessWriteAheadLog
 EncryptedWriteAheadProvenanceRepository
Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning up these references @jrsteinebrey. The changes look good in general, but there additional catch seems unnecessary.

// TODO: May need to instantiate ESAWAL for clarity?
wal = new SequentialAccessWriteAheadLog<>(flowFileRepositoryPaths.get(0), serdeFactory, this);
} else {
} catch (final Exception ex) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This catch seems unnecessary because there is only one implementation of the Write-Ahead Log supported.

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks for the updates @jrsteinebrey. I agree with removing the property from NiFiProperties, and as a result, the admin guide should be updated to remove the reference to that property. The historical TODO comment should also be removed.

Comment on lines +2951 to +2954
in order to address an issue that exists in the older implementation. In the event of power loss or an operating system crash, the old implementation was susceptible to recovering FlowFiles
incorrectly. This could potentially lead to the wrong attributes or content being assigned to a FlowFile upon restart, following the power loss or OS crash. However, one can still choose to opt into
using the previous implementation and accept that risk, if desired (for example, if the new implementation were to exhibit some unexpected error).
To do so, set the value of this property to `org.wali.MinimalLockingWriteAheadLog`. Another available implementation is `org.apache.nifi.wali.EncryptedSequentialAccessWriteAheadLog`.
To do so, set the value of this property to `org.wali.MinimalLockingWriteAheadLog`.
Copy link
Contributor

Choose a reason for hiding this comment

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

This entire property description can now be removed since there are no other implementations

"' has an invalid value of '" + walImplementation + "'. Please update nifi.properties to indicate a valid value for this property.");
}

// TODO: May need to instantiate ESAWAL for clarity?
Copy link
Contributor

Choose a reason for hiding this comment

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

The TODO comment no longer applies, it was referring to the encrypted implementation.

Copy link
Contributor

@exceptionfactory exceptionfactory left a comment

Choose a reason for hiding this comment

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

Thanks again for the cleanup @jrsteinebrey, this looks good now! +1 merging

@exceptionfactory exceptionfactory merged commit bf1e9f8 into apache:main Aug 15, 2025
8 checks passed
@jrsteinebrey jrsteinebrey deleted the NIFI-14732-A branch August 15, 2025 15:40
iadamcsik pushed a commit to iadamcsik/nifi that referenced this pull request Oct 22, 2025
…he#10207)

(cherry picked from commit 3f1b948926f9c63d86fc2703b1875ea70ecd8f90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants