atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suma...@apache.org
Subject incubator-atlas git commit: ATLAS-333 atlas_stop.py – script must delete “atlas.pid” file(ndjouhr via sumasai)
Date Wed, 25 Nov 2015 10:49:14 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master 4f3512192 -> 9710cff0b


ATLAS-333 atlas_stop.py – script must delete “atlas.pid” file(ndjouhr via sumasai)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/9710cff0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/9710cff0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/9710cff0

Branch: refs/heads/master
Commit: 9710cff0bc0c44375081a5e33e816d8744775764
Parents: 4f35121
Author: Suma Shivaprasad <sumasai.shivaprasad@gmail.com>
Authored: Wed Nov 25 16:19:04 2015 +0530
Committer: Suma Shivaprasad <sumasai.shivaprasad@gmail.com>
Committed: Wed Nov 25 16:19:04 2015 +0530

----------------------------------------------------------------------
 distro/src/bin/atlas_stop.py | 13 ++++++++++++-
 release-log.txt              |  1 +
 2 files changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/9710cff0/distro/src/bin/atlas_stop.py
----------------------------------------------------------------------
diff --git a/distro/src/bin/atlas_stop.py b/distro/src/bin/atlas_stop.py
index a157427..574f555 100755
--- a/distro/src/bin/atlas_stop.py
+++ b/distro/src/bin/atlas_stop.py
@@ -37,10 +37,21 @@ def main():
         pf.close()
     except:
         pid = None
-
     if not pid:
         sys.stderr.write("No process ID file found. Server not running?\n")
         return
+    if  mc.ON_POSIX:
+
+            if not mc.unix_exist_pid(pid):
+               sys.stderr.write("Server no longer running with pid %s\nImproper shutdown?\npid
file deleted.\n" %pid)
+               os.remove(metadata_pid_file)
+               return
+    else:
+        if mc.IS_WINDOWS:
+            if not mc.win_exist_pid((str)(pid)):
+                sys.stderr.write("Server no longer running with pid %s\nImproper shutdown?\npid
file deleted.\n" %pid)
+                os.remove(metadata_pid_file)
+                return
 
     os.kill(pid, SIGTERM)
 

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/9710cff0/release-log.txt
----------------------------------------------------------------------
diff --git a/release-log.txt b/release-log.txt
index c8faac2..2266302 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@ ATLAS-54 Rename configs in hive hook (shwethags)
 ATLAS-3 Mixed Index creation fails with Date types (sumasai via shwethags)
 
 ALL CHANGES:
+ATLAS-333 atlas_stop.py – script must delete “atlas.pid” file (ndjouhr via sumasai)
 ATLAS-220 Gets on Enum attribute should return EnumValue(yhemanth via sumasai)
 ATLAS-334 Update documentation to reflect copying required atlas file on solr installation
(sumasai via shwethags)
 ATLAS-294 Select queries(ex: from DB select DB.name) response contains column names as "_col_x"
instead of the actual names requested in the query.(thiyag via sumasai)


Mime
View raw message