fix(flink-query): 修复 checkpoint id 的类型为 Long
This commit is contained in:
@@ -63,7 +63,7 @@ public class FlinkController {
|
||||
}
|
||||
|
||||
@GetMapping("/checkpoint")
|
||||
public FlinkCheckpoint checkpoint(@RequestParam("url") String url, @RequestParam("vertex_id") String vertexId, @RequestParam("checkpoint_id") String checkpointId) throws JsonProcessingException {
|
||||
public FlinkCheckpoint checkpoint(@RequestParam("url") String url, @RequestParam("vertex_id") String vertexId, @RequestParam("checkpoint_id") Long checkpointId) throws JsonProcessingException {
|
||||
return flinkService.checkpoint(url, vertexId, checkpointId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ public interface FlinkService {
|
||||
|
||||
FlinkCheckpointOverview checkpointOverview(String url, String vertexId) throws JsonProcessingException;
|
||||
|
||||
FlinkCheckpoint checkpoint(String url, String vertexId, String checkpointId) throws JsonProcessingException;
|
||||
FlinkCheckpoint checkpoint(String url, String vertexId, Long checkpointId) throws JsonProcessingException;
|
||||
|
||||
FlinkCheckpointConfig checkpointConfig(String url, String vertexId) throws JsonProcessingException;
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class FlinkServiceImpl implements FlinkService {
|
||||
@Cacheable(value = "flink-checkpoint", sync = true)
|
||||
@Retryable(Throwable.class)
|
||||
@Override
|
||||
public FlinkCheckpoint checkpoint(String url, String vertexId, String checkpointId) throws JsonProcessingException {
|
||||
public FlinkCheckpoint checkpoint(String url, String vertexId, Long checkpointId) throws JsonProcessingException {
|
||||
return mapper.readValue(get(url, StrUtil.format("/v1/jobs/{}/checkpoints/details/{}", vertexId, checkpointId)), FlinkCheckpoint.class);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ public interface FlinkService {
|
||||
FlinkCheckpointOverview checkpointOverview(@Query("url") String url, @Query("vertex_id") String vertexId);
|
||||
|
||||
@Get("/flink/checkpoint")
|
||||
FlinkCheckpoint checkpoint(@Query("url") String url, @Query("vertex_id") String vertexId, @Query("checkpoint_id") String checkpointId);
|
||||
FlinkCheckpoint checkpoint(@Query("url") String url, @Query("vertex_id") String vertexId, @Query("checkpoint_id") Long checkpointId);
|
||||
|
||||
@Get("/flink/checkpoint_config")
|
||||
FlinkCheckpointConfig checkpointConfig(@Query("url") String url, @Query("vertex_id") String vertexId);
|
||||
|
||||
Reference in New Issue
Block a user