cserwen opened a new issue #3900:
URL: https://github.com/apache/rocketmq/issues/3900


   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   Test multi-disk storage https://github.com/apache/rocketmq/pull/3357
   
   - What did you expect to see?
   When I set `storePathCommitLog` as 
`/home/work/ssd2/rocketmq/commitlog/,/home/work/ssd3/rocketmq/commitlog/,/home/work/ssd4/rocketmq/commitlog/`,
 the broker will create this 
directory:`/home/work/ssd2/rocketmq/commitlog/,/home/work/ssd3/rocketmq/commitlog/,/home/work/ssd4/rocketmq/commitlog/`
   ```bash
   [work@localhost ssd2]$ pwd
   
/home/work/ssd2/rocketmq/commitlog/,/home/work/ssd3/rocketmq/commitlog/,/home/work/ssd4/rocketmq/commitlog
   ```
   - What did you see instead?
   This directory should not be created
   
   2. Please tell us about your environment:
   Branch:master
   OS:Linux
   
   4. Other information (e.g. detailed explanation, logs, related issues, 
suggestions how to fix, etc):
   I find it will be created here:
   
https://github.com/apache/rocketmq/blob/799d4125bdcfcf223aa3c8e954866d657abf90c2/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java#L174
   This method does not consider the multi-directory case:
   
https://github.com/apache/rocketmq/blob/799d4125bdcfcf223aa3c8e954866d657abf90c2/store/src/main/java/org/apache/rocketmq/store/MappedFile.java#L81


-- 
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]


Reply via email to