Commit 315b5d18 by Suma Shivaprasad

ATLAS-1248 /bin/atlas_stop.py not killing the process and process is found alive…

ATLAS-1248 /bin/atlas_stop.py not killing the process and process is found alive even after 30 secs (zhangqiang2 via sumasai)
parent 29880e77
......@@ -16,10 +16,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from signal import SIGTERM
from signal import SIGTERM, SIGKILL
import sys
import traceback
import time
import atlas_config as mc
def main():
......@@ -63,6 +63,15 @@ def main():
# stop hbase
if mc.is_hbase_local(confdir):
mc.run_hbase_action(mc.hbaseBinDir(atlas_home), "stop", None, None, True)
#after 30 seconds kill it
time.sleep(30)
if mc.exist_pid(pid):
try:
sys.stderr.write("did not stop gracefully after 30 seconds seconds: killing with SIGKILL\n")
os.kill(pid, SIGKILL)
except:
pass
if __name__ == '__main__':
try:
......
......@@ -9,6 +9,7 @@ ATLAS-1060 Add composite indexes for exact match performance improvements for al
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
ATLAS-1248 /bin/atlas_stop.py not killing the process and process is found alive even after 30 secs (zhangqiang2 via sumasai)
ATLAS-1258 BugFix for Indexer NPE on StructDef lookup (apoorvnaik via sumasai)
ATLAS-1233 UnitTests for the TypeDefStores (apoorvnaik via sumasai)
ATLAS-1240 Adding Change listeners to react on changes in TypesDef (apoorvnaik via sumasai)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment