[Enhancement] Remove legacy code (#22127)
Signed-off-by: sduzh <zhuming9011@qq.com>
This commit is contained in:
parent
1317f59d3f
commit
c0888d9f09
|
|
@ -386,26 +386,6 @@ public class CompactionScheduler extends Daemon {
|
|||
}
|
||||
context.setVisibleStateWaiter(waiter);
|
||||
context.setCommitTs(System.currentTimeMillis());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
long numInputBytes = 0;
|
||||
long numInputRows = 0;
|
||||
long numOutputBytes = 0;
|
||||
long numOutputRows = 0;
|
||||
for (Future<CompactResponse> responseFuture : context.getResponseList()) {
|
||||
CompactResponse response = responseFuture.get();
|
||||
numInputBytes += response.numInputBytes;
|
||||
numInputRows += response.numInputRows;
|
||||
numOutputBytes += response.numOutputBytes;
|
||||
numOutputRows += response.numOutputRows;
|
||||
}
|
||||
LOG.debug("Committed compaction. {} inputBytes={} inputRows={} outputBytes={} outputRows={} time={}",
|
||||
context.getDebugString(),
|
||||
numInputBytes,
|
||||
numInputRows,
|
||||
numOutputBytes,
|
||||
numOutputRows,
|
||||
(context.getCommitTs() - context.getStartTs()));
|
||||
}
|
||||
}
|
||||
|
||||
private void abortTransactionIgnoreError(long dbId, long txnId, String reason) {
|
||||
|
|
|
|||
|
|
@ -62,11 +62,11 @@ message CompactRequest {
|
|||
|
||||
message CompactResponse {
|
||||
repeated int64 failed_tablets = 1;
|
||||
optional int64 execution_time = 2; // ms
|
||||
optional int64 num_input_bytes = 3;
|
||||
optional int64 num_input_rows = 4;
|
||||
optional int64 num_output_bytes = 5;
|
||||
optional int64 num_output_rows = 6;
|
||||
// optional int64 execution_time = 2; // ms
|
||||
// optional int64 num_input_bytes = 3;
|
||||
// optional int64 num_input_rows = 4;
|
||||
// optional int64 num_output_bytes = 5;
|
||||
// optional int64 num_output_rows = 6;
|
||||
optional StatusPB status = 7;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue