[ https://issues.apache.org/jira/browse/HBASE-21466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16682946#comment-16682946 ]
Ted Yu commented on HBASE-21466: -------------------------------- Here is snippet from test output without fix: {code} 2018-11-11 09:12:23,731 DEBUG [WALProcedureStoreSyncThread] wal.WALProcedureStore(1229): Removed log=file:/tmp/wal/MasterProcWALs/pv2-00000000000000000005.log, activeLogs=[file:/tmp/wal/MasterProcWALs/pv2-00000000000000000006.log, file:/tmp/wal/MasterProcWALs/pv2-00000000000000000007.log] 2018-11-11 09:12:23,731 INFO [WALProcedureStoreSyncThread] wal.ProcedureWALFile(160): Archiving file:/tmp/wal/MasterProcWALs/pv2-00000000000000000006.log to file:/tmp/wal/oldWALs/pv2-00000000000000000006.log 2018-11-11 09:12:23,732 DEBUG [WALProcedureStoreSyncThread] wal.WALProcedureStore(1229): Removed log=file:/tmp/wal/MasterProcWALs/pv2-00000000000000000006.log, activeLogs=[file:/tmp/wal/MasterProcWALs/pv2-00000000000000000007.log] Process Thread Dump: Thread dump because: Master not initialized after 200000ms {code} > WALProcedureStore uses wrong FileSystem if wal.dir is not under rootdir > ----------------------------------------------------------------------- > > Key: HBASE-21466 > URL: https://issues.apache.org/jira/browse/HBASE-21466 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Priority: Major > Attachments: 21466.v1.txt > > > In WALProcedureStore ctor , the fs field is initialized this way: > {code} > this.fs = walDir.getFileSystem(conf); > {code} > However, when wal.dir is not under rootdir, the above would return wrong > FileSystem. > In the modified TestMasterProcedureEvents, without fix, the master wouldn't > initialize. -- This message was sent by Atlassian JIRA (v7.6.3#76005)