You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2023/04/08 23:47:54 UTC

[inlong] branch master updated: [INLONG-7800][Manager] Fix update Redis data node failure (#7801)

This is an automated email from the ASF dual-hosted git repository.

healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new c38893e04 [INLONG-7800][Manager] Fix update Redis data node failure (#7801)
c38893e04 is described below

commit c38893e04356dce6a648adb871ca67df220c4b7a
Author: haifxu <xh...@gmail.com>
AuthorDate: Sun Apr 9 07:47:47 2023 +0800

    [INLONG-7800][Manager] Fix update Redis data node failure (#7801)
---
 .../org/apache/inlong/manager/pojo/node/redis/RedisDataNodeDTO.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/node/redis/RedisDataNodeDTO.java b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/node/redis/RedisDataNodeDTO.java
index d27528ae7..bef4f67e2 100644
--- a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/node/redis/RedisDataNodeDTO.java
+++ b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/node/redis/RedisDataNodeDTO.java
@@ -82,6 +82,12 @@ public class RedisDataNodeDTO {
      */
     public static RedisDataNodeDTO getFromRequest(RedisDataNodeRequest request) throws Exception {
         return RedisDataNodeDTO.builder()
+                .clusterMode(request.getClusterMode())
+                .host(request.getHost())
+                .port(request.getPort())
+                .masterName(request.getMasterName())
+                .sentinelsInfo(request.getSentinelsInfo())
+                .clusterNodes(request.getClusterNodes())
                 .build();
     }