[ 
https://issues.apache.org/jira/browse/GEODE-8717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236492#comment-17236492
 ] 

ASF GitHub Bot commented on GEODE-8717:
---------------------------------------

kohlmu-pivotal commented on a change in pull request #5767:
URL: https://github.com/apache/geode/pull/5767#discussion_r528011451



##########
File path: 
geode-redis/src/integrationTest/java/org/apache/geode/redis/internal/executor/server/AbstractInfoIntegrationTest.java
##########
@@ -39,6 +44,71 @@
   private static final int REDIS_CLIENT_TIMEOUT =
       Math.toIntExact(GeodeAwaitility.getTimeout().toMillis());
 
+  final List<String> SERVER_PROPERTIES =
+      Arrays.asList(
+          "# Server",
+          "redis_version:",
+          "redis_mode:",
+          "tcp_port:",
+          "uptime_in_days:",
+          "uptime_in_seconds:");
+
+  final List<String> PERSISTENCE_PROPERTIES =
+      Arrays.asList(
+          "# Persistence",
+          "rdb_changes_since_last_save",
+          "rdb_last_save_time",
+          "loading:");
+
+  final List<String> REPLICATION_PROPERTIES =
+      Arrays.asList(
+          "# Replication",
+          "role:",
+          "connected_slaves:");
+
+  final List<String> CLUSTER_PROPERTIES =
+      Arrays.asList(
+          "# Cluster",
+          "cluster_enabled:");
+
+  final List<String> CLIENTS_PROPERTIES =
+      Arrays.asList(
+          "# Clients",
+          "connected_clients:",
+          "blocked_clients:");
+
+  final List<String> MEMORY_PROPERTIES =
+      Arrays.asList(
+          "# Memory",
+          "used_memory:",
+          "mem_fragmentation_ratio:");
+
+  final List<String> KEYSPACE_PROPERTIES =
+      Arrays.asList(
+          "# Keyspace",
+          "db0:");
+
+  final List<String> STATS_PROPERTIES =
+      Arrays.asList(
+          "# Stats",
+          "total_commands_processed:",
+          "instantaneous_ops_per_sec:",
+          "total_net_input_bytes:",
+          "instantaneous_input_kbps:",
+          "total_connections_received:",
+          "keyspace_hits:",
+          "keyspace_misses:",
+          "evicted_keys:",
+          "rejected_connections:");
+
+
+  final List<String> ALL_PROPERTIES =
+      Stream.of(SERVER_PROPERTIES, PERSISTENCE_PROPERTIES, CLUSTER_PROPERTIES,
+          MEMORY_PROPERTIES, CLIENTS_PROPERTIES, STATS_PROPERTIES, 
REPLICATION_PROPERTIES)
+          .flatMap(Collection::stream)
+          .collect(
+              Collectors.collectingAndThen(Collectors.toList(), 
Collections::unmodifiableList));

Review comment:
       Wow... this seems so hard compared to `list.addAll`




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Redis INFO Command should only return specified sections when given parameter
> -----------------------------------------------------------------------------
>
>                 Key: GEODE-8717
>                 URL: https://issues.apache.org/jira/browse/GEODE-8717
>             Project: Geode
>          Issue Type: Improvement
>          Components: redis
>    Affects Versions: 1.14.0
>            Reporter: John Hutchison
>            Assignee: Raymond Ingles
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.14.0
>
>
> https://github.com/apache/geode/pull/5756



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to