@Override public boolean equals(Object o) { if (!(o instanceof ValidationComplete)) return false; ValidationComplete other = (ValidationComplete)o; return messageType == other.messageType && desc.equals(other.desc); }
public void onFailure(Throwable t) { setException(t); } }
/** * Create repair job to run on specific columnfamily * * @param session RepairSession that this RepairJob belongs * @param columnFamily name of the ColumnFamily to repair */ public RepairJob(RepairSession session, String columnFamily) { this.session = session; this.desc = new RepairJobDesc(session.parentRepairSession, session.getId(), session.keyspace, columnFamily, session.getRanges()); this.repairedAt = session.repairedAt; this.taskExecutor = session.taskExecutor; this.parallelismDegree = session.parallelismDegree; }
public void onSuccess(List<SyncStat> stats) { logger.info("[repair #{}] {} is fully synced", session.getId(), desc.columnFamily); SystemDistributedKeyspace.successfulRepairJob(session.getId(), desc.keyspace, desc.columnFamily); set(new RepairResult(desc, stats)); }
/** * Snapshot, validation and sync failures are all handled here */ public void onFailure(Throwable t) { logger.warn("[repair #{}] {} sync failed", session.getId(), desc.columnFamily); SystemDistributedKeyspace.failedRepairJob(session.getId(), desc.keyspace, desc.columnFamily, t); setException(t); } }, taskExecutor);
@Override public String toString() { return getName(); } }
public SyncComplete(RepairJobDesc desc, InetAddress endpoint1, InetAddress endpoint2, boolean success) { super(Type.SYNC_COMPLETE, desc); this.nodes = new NodePair(endpoint1, endpoint2); this.success = success; }
public static void failRepairs(UUID id, String keyspaceName, String[] cfnames, Throwable t) { for (String cfname : cfnames) failedRepairJob(id, keyspaceName, cfname, t); }
/** * Create repair job to run on specific columnfamily * * @param session RepairSession that this RepairJob belongs * @param columnFamily name of the ColumnFamily to repair */ public RepairJob(RepairSession session, String columnFamily) { this.session = session; this.desc = new RepairJobDesc(session.parentRepairSession, session.getId(), session.keyspace, columnFamily, session.getRanges()); this.repairedAt = session.repairedAt; this.taskExecutor = session.taskExecutor; this.parallelismDegree = session.parallelismDegree; }
public void onSuccess(List<SyncStat> stats) { logger.info("[repair #{}] {} is fully synced", session.getId(), desc.columnFamily); SystemDistributedKeyspace.successfulRepairJob(session.getId(), desc.keyspace, desc.columnFamily); set(new RepairResult(desc, stats)); }
/** * Snapshot, validation and sync failures are all handled here */ public void onFailure(Throwable t) { logger.warn("[repair #{}] {} sync failed", session.getId(), desc.columnFamily); SystemDistributedKeyspace.failedRepairJob(session.getId(), desc.keyspace, desc.columnFamily, t); setException(t); } }, taskExecutor);
@Override public boolean equals(Object o) { if (!(o instanceof ValidationComplete)) return false; ValidationComplete other = (ValidationComplete)o; return messageType == other.messageType && desc.equals(other.desc); }
@Override public String toString() { return getName(); } }
public void onFailure(Throwable t) { setException(t); } }
public static void failRepairs(UUID id, String keyspaceName, String[] cfnames, Throwable t) { for (String cfname : cfnames) failedRepairJob(id, keyspaceName, cfname, t); }
/** * Create repair job to run on specific columnfamily * * @param session RepairSession that this RepairJob belongs * @param columnFamily name of the ColumnFamily to repair */ public RepairJob(RepairSession session, String columnFamily) { this.session = session; this.desc = new RepairJobDesc(session.parentRepairSession, session.getId(), session.keyspace, columnFamily, session.getRanges()); this.repairedAt = session.repairedAt; this.taskExecutor = session.taskExecutor; this.parallelismDegree = session.parallelismDegree; }
public void onSuccess(List<SyncStat> stats) { logger.info("[repair #{}] {} is fully synced", session.getId(), desc.columnFamily); SystemDistributedKeyspace.successfulRepairJob(session.getId(), desc.keyspace, desc.columnFamily); set(new RepairResult(desc, stats)); }