[ https://issues.apache.org/jira/browse/ZOOKEEPER-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ling Mao resolved ZOOKEEPER-4319. --------------------------------- Fix Version/s: 3.8.0 Resolution: Fixed > Refactor AtomicFileWritingIdiomTest to use TempDir annotation > ------------------------------------------------------------- > > Key: ZOOKEEPER-4319 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4319 > Project: ZooKeeper > Issue Type: Test > Components: server > Reporter: Elvys Soares > Priority: Minor > Labels: pull-request-available > Fix For: 3.8.0 > > Original Estimate: 1m > Time Spent: 0.5h > Remaining Estimate: 0h > > *Problem:* > Tests that manipulate external file resources need to guarantee resource > integrity and availability. Test suite design and maintainability may suffer > from the addition of assurance steps to guarantee parallel execution > scenarios and resource leakage from failed previous executions. > *Solution:* > The use of [@tempdir|https://github.com/tempdir] annotation assures a > temporary directory being created and cleaned up for every test method > execution, thus simplifying test maintenance steps. > Using this approach, we will not create a redundancy {{build/test/tmp}} file > under {{zookeeper/zookeeper-server}} directory, and we also don't need to > remove the {{target}} file manually -- This message was sent by Atlassian Jira (v8.3.4#803005)