[MINOR] Access the static member getLastHeartbeatTime via the class instead (#3015)
This commit is contained in:
@@ -93,7 +93,7 @@ public class HeartbeatUtils {
|
|||||||
try {
|
try {
|
||||||
if (config.getFailedWritesCleanPolicy().isLazy() && heartbeatClient.isHeartbeatExpired(instantTime)) {
|
if (config.getFailedWritesCleanPolicy().isLazy() && heartbeatClient.isHeartbeatExpired(instantTime)) {
|
||||||
throw new HoodieException("Heartbeat for instant " + instantTime + " has expired, last heartbeat "
|
throw new HoodieException("Heartbeat for instant " + instantTime + " has expired, last heartbeat "
|
||||||
+ heartbeatClient.getLastHeartbeatTime(table.getMetaClient().getFs(), config.getBasePath(), instantTime));
|
+ HoodieHeartbeatClient.getLastHeartbeatTime(table.getMetaClient().getFs(), config.getBasePath(), instantTime));
|
||||||
}
|
}
|
||||||
} catch (IOException io) {
|
} catch (IOException io) {
|
||||||
throw new HoodieException("Unable to read heartbeat", io);
|
throw new HoodieException("Unable to read heartbeat", io);
|
||||||
|
|||||||
Reference in New Issue
Block a user