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

オープン
#19,005 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
284

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/iotdb のほかの issue

apache/iotdb の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。