bbfsdev / bbfs

Big brother file system (distributed file system)
14 stars 5 forks source link

Bug-found at release 1.4.0-bug-1 #235

Closed yarondbb closed 10 years ago

yarondbb commented 10 years ago

The new version does not run with "enable_monitoring: true". So I have run the "backup_server" without monitoring.

The next error was triggered with "enable_monitoring: true": [bbfs@swift1 ~]$ backup_server

Interrupt or Exit happened in server:''. Exception type:'NoMethodError'. Exception message:'undefined method synchronize' for nil:NilClass'. Stopping process. Backtrace: /usr/local/rvm/gems/ruby-1.9.3-p429@bbfs/gems/content_server-1.4.0/lib/networking/tcp.rb:197:inblock (2 levels) in start_reading' /usr/local/rvm/gems/ruby-1.9.3-p429@bbfs/gems/content_server-1.4.0/lib/networking/tcp.rb:191:in loop' /usr/local/rvm/gems/ruby-1.9.3-p429@bbfs/gems/content_server-1.4.0/lib/networking/tcp.rb:191:inblock in start_reading'

yarondbb commented 10 years ago

Root cause found: At lib/networking/tcp.rb:197: @remote_server_available_mutex is used in method:start_reading. Method start_reading is called (in initialize) before @remote_server_available_mutex is defined

bbfsdev commented 10 years ago

IIUC this is the second time we fail on this issue. Please write a test and send for review.