nikhilerigila09 opened a new pull request, #23274: URL: https://github.com/apache/pulsar/pull/23274
Fixes [23273](https://github.com/apache/pulsar/issues/23273) ### Motivation This PR addresses an issue where the Pulsar broker fails to restart due to incomplete NAR file extraction. The broker attempts to reuse an incomplete directory in the `/tmp` folder, leading to a `NoSuchFileException`. This occurs when the broker is stopped during the extraction process, causing the NAR files to remain in an inconsistent state, which affects future restarts. ### Modifications * extract to a temporary directory which is renamed to the target directory in the last step. This ensures the consistency of the extracted files. ### Verifying this change - [x] Make sure that the change passes the CI checks. This change added tests and can be verified as follows: * Adding new tests that simulate an incomplete NAR extraction, followed by a broker restart to ensure it handles incomplete extractions. ### Does this pull request potentially affect one of the following parts: *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [x] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: https://github.com/cognitree/pulsar/pull/15 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
