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

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


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

commit 57e06f7f4cf33a43522042c0ec4c840c4954f79e
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Oct 17 15:12:00 2025 +0800

    branch-4.0: [fix](fe)show config command use readline instead of  ready 
#54791 (#57089)
    
    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 1e00ab3d76b..d106a63897f 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
@@ -133,9 +133,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]
@@ -154,7 +154,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