dzitkowskik / mini-dos

Project for Distributed Operating Systems at Warsaw University of Technology (Mathematics and Computer Science department) Winter 2015
Apache License 2.0
0 stars 0 forks source link

Create/Alter table - new node case #59

Closed dzitkowskik closed 8 years ago

dzitkowskik commented 8 years ago

When new node is registered to the system, it should "recreate" all tables and alter statements already in use in a system. So we must add sth like initialization process after registration, and before node can actually be used by a system (so we will have 3 (or more) states for nodes: registered, active, failed), queries are sent to node only if it is in active status. After registering, master asks node to initialize with list of statements (it sends to him list of create table and alter statements [in order master recived them before] to node, and node must successfully execute them in that order.) if everything is fine, master will mark node as active:)

dzitkowskik commented 8 years ago

Partially solved by #47 and #58