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

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 16e0fdd404e branch-3.1: [fix](fe)show config command use readline 
instead of  ready #54791 (#57088)
16e0fdd404e is described below

commit 16e0fdd404e3b4be1fa3c28b77715fc5665b65e9
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 20 12:00:38 2025 +0800

    branch-3.1: [fix](fe)show config command use readline instead of  ready 
#54791 (#57088)
    
    Cherry-picked from #54791
    
    Co-authored-by: koarz <[email protected]>
---
 .../doris/nereids/trees/plans/commands/ShowConfigCommand.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowConfigCommand.java
 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowConfigCommand.java
index a53f8febe12..2794002f66a 100644
--- 
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowConfigCommand.java
+++ 
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowConfigCommand.java
@@ -132,9 +132,9 @@ public class ShowConfigCommand extends Command implements 
NoForward {
                 urlConnection.setRequestProperty("Auth-Token", 
Env.getCurrentEnv().getTokenManager().acquireToken());
                 InputStream inputStream = urlConnection.getInputStream();
                 BufferedReader reader = new BufferedReader(new 
InputStreamReader(inputStream));
-                while (reader.ready()) {
+                String line;
+                while ((line = reader.readLine()) != null) {
                     // line's format like [["k1","v1"], ["k2","v2"]]
-                    String line = reader.readLine();
                     JSONArray outer = new JSONArray(line);
                     for (int i = 0; i < outer.length(); ++i) {
                         // [key, type, value, isMutable]
@@ -153,7 +153,7 @@ public class ShowConfigCommand extends Command implements 
NoForward {
                 }
             } catch (Exception e) {
                 throw new AnalysisException(
-                        String.format("Can’t get backend config, backendId: 
%d, host: %s. error: %s",
+                        String.format("Can't get backend config, backendId: 
%d, host: %s. error: %s",
                                 beId, host, e.getMessage()), e);
             }
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to