Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Looks like truncate is added in 2.7.
See HdfsTransactionLog:
// HACK // while waiting for HDFS-3107, instead of quickly // dropping, we slowly apply // This is somewhat brittle, but current usage // allows for it @Override public boolean dropBufferedUpdates() { Future<RecoveryInfo> future = applyBufferedUpdates(); if (future != null) { try { future.get(); } catch (InterruptedException | ExecutionException e) { throw new RuntimeException(e); } } return true; }