35 int32_t plan_generation)
36 : m_comm(comm), m_plan(plan), m_location(location),
37 m_plan_generation(plan_generation) {
39 (size_t)props->get_i64(
"Hypertable.RangeServer.Failover.FlushLimit.Aggregate");
41 (size_t)props->get_i32(
"Hypertable.RangeServer.Failover.FlushLimit.PerRange");
42 m_timeout_ms = props->get_i32(
"Hypertable.Failover.Timeout");
46 for (
const auto &location : locations) {
47 vector<QualifiedRangeSpec> specs;
49 for (
auto &spec : specs) {
51 = make_shared<RangeReplayBuffer>(location, spec);
59 const char *row = key.
row();
72 << it->second->memory_used() <<
", total limit="
80 HT_DEBUG_OUT <<
"Skipping key " << row <<
" for table " << table.
id
81 <<
" because it is not in recovery plan" <<
HT_END;
90 if (vv.second->memory_used() > 0) {
std::set< String > StringSet
STL Set managing Strings.
A memory buffer of static size.
std::string String
A String is simply a typedef to std::string.
std::shared_ptr< RangeReplayBuffer > RangeReplayBufferPtr
void get_range_specs(vector< QualifiedRangeSpec > &specs) const
void add(const CommAddress &addr, const QualifiedRangeSpec &range, uint32_t fragment, StaticBuffer &buffer)
A class managing one or more serializable ByteStrings.
void wait_for_completion()
std::shared_ptr< Properties > PropertiesPtr
Compatibility Macros for C/C++.
const RangeServerRecovery::ReceiverPlan & m_plan
ReplayBufferMap m_buffer_map
void add(const TableIdentifier &table, SerializedKey &key, ByteString &value)
int32_t m_plan_generation
Entry point to AsyncComm service.
Qualified (with table identifier) range specification.
void get_updates(StaticBuffer &updates)
void get_locations(StringSet &locations) const
CommAddress & get_comm_address()
QualifiedRangeSpec & get_range()
bool get_range_spec(const TableIdentifier &table, const char *row, QualifiedRangeSpec &spec) const
Address abstraction to hold either proxy name or IPv4:port address.
size_t m_flush_limit_per_range
size_t m_flush_limit_aggregate
RangeServer recovery receiver plan.