Duo Zhang created HBASE-30260:
---------------------------------

             Summary: Polish X509TestContext to make it more stable
                 Key: HBASE-30260
                 URL: https://issues.apache.org/jira/browse/HBASE-30260
             Project: HBase
          Issue Type: Improvement
          Components: security, test
            Reporter: Duo Zhang
            Assignee: Duo Zhang


TLS related tests sometimes fail in pre commit build and also on the flaky 
dashboard.

Checking the code, when regenerating the file, we will write on the original 
file with an FileOutputStream, which means we will truncate the file first and 
then write the content, it is possible that the FileWatcher read a incomplete 
file and cause errors.

Plan to make it write a temp file and then move it atomicly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to