IoTDB Edge: stop-edge.bat ignores IOTDB_HOME, while start-edge.bat honours it

未關閉
#19,005 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
56/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
java
領域
cli

研究方向

Read scripts/sbin/windows/start-edge.bat and scripts/sbin/windows/stop-edge.bat at the linked lines, then compare how each handles IOTDB_HOME. The issue describes a mismatch when the same installation is reached through a symbolic link or junction; done means stop-edge.bat can match the process started with that path. The report says the scripts have not been run on Windows, so verify behavior there if possible.

由索引模型根據 Issue 內容生成。

描述

start-edge.bat keeps an IOTDB_HOME taken from the environment and passes it to the JVM as -DIOTDB_HOME="...":

https://github.com/apache/iotdb/blob/7aa8e63a7c6be84a5189006a2e5b884ab33f2a90/scripts/sbin/windows/start-edge.bat#L64-L65
https://github.com/apache/iotdb/blob/7aa8e63a7c6be84a5189006a2e5b884ab33f2a90/scripts/sbin/windows/start-edge.bat#L92

stop-edge.bat always sets IOTDB_HOME to the installation it belongs to, and only stops a java.exe whose command line contains -DIOTDB_HOME= followed by exactly that string:

https://github.com/apache/iotdb/blob/7aa8e63a7c6be84a5189006a2e5b884ab33f2a90/scripts/sbin/windows/stop-edge.bat#L23-L26

So when the node was started with IOTDB_HOME set to another path to the same directory, such as a symbolic link or a junction, stop-edge.bat does not match the process. This is the Windows side of #18545. The Unix scripts are being changed in #18546, where both scripts now derive IOTDB_HOME with one shared function.

This came up in the review of #18546. I do not have a Windows machine and have not run these scripts; the above is from reading them.

主要語言
Java
星號
6.4k
分支
1.2k
平均合併
1 天 12 小時
30 天內合併 PR
284

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

apache/iotdb 的其他 Issue

查看 apache/iotdb 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。