Skip to content

Commit

Permalink
make node_id required
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 9, 2012
1 parent 8e3b9c4 commit 2bac3d0
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -322,7 +322,7 @@

<table name="outgoing_batch" description="Used for tracking the sending a collection of data to a node in the system. A new outgoing_batch is created and given a status of 'NE'. After sending the outgoing_batch to its target node, the status becomes 'SE'. The node responds with either a success status of 'OK' or an error status of 'ER'. An error while sending to the node also results in an error status of 'ER' regardless of whether the node sends that acknowledgement. ">
<column name="batch_id" type="BIGINT" required="true" primaryKey="true" description="A unique id for the batch." />
<column name="node_id" type="VARCHAR" size="50" primaryKey="true" description="The node that this batch is targeted at." />
<column name="node_id" type="VARCHAR" size="50" required="true" primaryKey="true" description="The node that this batch is targeted at." />
<column name="channel_id" type="VARCHAR" size="20" description="The channel that this batch is part of." />
<column name="status" type="CHAR" size="2" description="The current status of the Batch can be currently routing (RE), newly created and ready for replication (NE), being queried from the database (QE), sent to a Node (SE), ready to be loaded (LD) and acknowledged as successful (OK) or error (ER)." />
<column name="load_flag" type="BOOLEANINT" size="1" default="0" description="A flag that indicates that this batch is part of an initial load." />
Expand Down Expand Up @@ -350,6 +350,9 @@
<column name="last_update_hostname" type="VARCHAR" size="255" description="The host name of the process that last did work on this batch." />
<column name="last_update_time" type="TIMESTAMP" description="Timestamp when a process last updated this entry." />
<column name="create_time" type="TIMESTAMP" description="Timestamp when this entry was created." />
<index name="idx_ob_batch_id">
<index-column name="batch_id" />
</index>
<index name="idx_ob_node_status">
<index-column name="node_id" />
<index-column name="status" />
Expand Down

0 comments on commit 2bac3d0

Please sign in to comment.