hibari / gdss-client

http://hibari.github.com/hibari-doc/
Other
2 stars 0 forks source link

brick_simple_client:find_the_brick/3 crashes for unknown table #8

Closed tatsuya6502 closed 11 years ago

tatsuya6502 commented 11 years ago
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:64] [hipe] [kernel-poll:true]

Eshell V5.9.3.1  (abort with ^G)
(hibariclient@127.0.0.1)1> application:start(sasl).
ok
...

(hibariclient@127.0.0.1)2> application:start(gdss_client).
...
ok

(hibariclient@127.0.0.1)3> brick_simple_client:find_the_brick(unknown_table, <<"key">>, write).
** exception error: no match of right hand side value error
     in function  brick_simple_client:find_the_brick/3 (src/brick_simple_client.erl, line 231)
tatsuya6502 commented 11 years ago

Pushed the fix. Commit: https://github.com/hibari/gdss-client/commit/cedb2f2e3b92a1962d1a75fa204b7602dc431ae3

Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:4:4] [async-threads:64] [hipe] [kernel-poll:true]

Eshell V5.9.3.1  (abort with ^G)
(hibariclient@127.0.0.1)1> application:start(sasl).
ok
...

(hibariclient@127.0.0.1)2> application:start(gdss_client).
...
ok

(hibariclient@127.0.0.1)3> brick_simple_client:find_the_brick(unknown_table, <<"key">>, write).
brick_not_available
(hibariclient@127.0.0.1)4>