DDFS should ignore unknown/corrupt tags or blobs. #409

Open
pooya opened this Issue Jan 23, 2014 · 0 comments

Projects

None yet

1 participant

@pooya
Owner
pooya commented Jan 23, 2014

MacOS creates directories named .DS_Store whenever you visit a directory. This may prevent ddfs from starting:
09:10:41.955 [info] Config table updated [188/346]
09:10:41.979 [info] Starting node "disco_8989_slave" on "localhost" ("localhost")
09:10:41.984 [info] web server (mochiweb) starts
09:10:41.984 [info] Application disco started on node disco_8989_master@shayan
09:10:42.316 [info] ddfs_node initialized on disco_8989_master@shayan with volumes: ["vol0"]
09:10:42.318 [error] CRASH REPORT Process <0.133.0> with 0 neighbours exited with reason: no match of right hand value [".DS_Store"] in ddfs_util:unpack_objname/1 line 69 in gen_server:init_it/6 line 328
09:10:42.318 [info] ddfs_node failed to start on disco_8989_master@shayan: {error,{{badmatch,[".DS_Store"]},[{ddfs_util,unpack_objname,1,[{file,"src/ddfs/ddfs_util.erl"},{line,69}]},{ddfs_node,parse_tag,3
,[{file,"src/ddfs/ddfs_node.erl"},{line,378}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{ddfs_node,find_tags,2,[{file,"src/ddfs/ddfs_node.erl"},{line,368}]},{ddfs_node,init,1,[{file,"src/ddfs/ddfs
_node.erl"},{line,80}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}
09:10:42.318 [info] Node failed at disco_8989_slave@localhost on "localhost": {error,{{badmatch,[".DS_Store"]},[{ddfs_util,unpack_objname,1,[{file,"src/ddfs/ddfs_util.erl"},{line,69}]},{ddfs_node,parse_ta
g,3,[{file,"src/ddfs/ddfs_node.erl"},{line,378}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{ddfs_node,find_tags,2,[{file,"src/ddfs/ddfs_node.erl"},{line,368}]},{ddfs_node,init,1,[{file,"src/ddfs/d
dfs_node.erl"},{line,80}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}
09:10:42.320 [info] ddfs_node initialized on disco_8989_slave@localhost with volumes: ["vol0"]
09:10:42.326 [error] CRASH REPORT Process <11154.42.0> with 0 neighbours exited with reason: no match of right hand value [".DS_Store"] in ddfs_util:unpack_objname/1 line 69 in gen_server:init_it/6 line 3
28
09:10:42.326 [info] ddfs_node failed to start on disco_8989_slave@localhost: {error,{{badmatch,[".DS_Store"]},[{ddfs_util,unpack_objname,1,[{file,"src/ddfs/ddfs_util.erl"},{line,69}]},{ddfs_node,parse_tag
,3,[{file,"src/ddfs/ddfs_node.erl"},{line,378}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{ddfs_node,find_tags,2,[{file,"src/ddfs/ddfs_node.erl"},{line,368}]},{ddfs_node,init,1,[{file,"src/ddfs/dd
fs_node.erl"},{line,80}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}
09:10:57.319 [warning] Restarting monitor for "localhost"
09:10:57.321 [info] Starting node "disco_8989_slave" on "localhost" ("localhost")
09:10:57.635 [info] ddfs_node initialized on disco_8989_master@shayan with volumes: ["vol0"]
09:10:57.636 [error] CRASH REPORT Process <0.157.0> with 0 neighbours exited with reason: no match of right hand value [".DS_Store"] in ddfs_util:unpack_objname/1 line 69 in gen_server:init_it/6 line 328
09:10:57.636 [info] ddfs_node failed to start on disco_8989_master@shayan: {error,{{badmatch,[".DS_Store"]},[{ddfs_util,unpack_objname,1,[{file,"src/ddfs/ddfs_util.erl"},{line,69}]},{ddfs_node,parse_tag,3
,[{file,"src/ddfs/ddfs_node.erl"},{line,378}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{ddfs_node,find_tags,2,[{file,"src/ddfs/ddfs_node.erl"},{line,368}]},{ddfs_node,init,1,[{file,"src/ddfs/ddfs
_node.erl"},{line,80}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}
09:10:57.637 [info] Node failed at disco_8989_slave@localhost on "localhost": {error,{{badmatch,[".DS_Store"]},[{ddfs_util,unpack_objname,1,[{file,"src/ddfs/ddfs_util.erl"},{line,69}]},{ddfs_node,parse_ta
g,3,[{file,"src/ddfs/ddfs_node.erl"},{line,378}]},{lists,foldl,3,[{file,"lists.erl"},{line,1248}]},{ddfs_node,find_tags,2,[{file,"src/ddfs/ddfs_node.erl"},{line,368}]},{ddfs_node,init,1,[{file,"src/ddfs/d
dfs_node.erl"},{line,80}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}

Removing these files resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment