Example #1
0
File: fault.py Project: LJoNe/gpdb
    def test_drop_db_dir(self):
        ''' Drop Database dir only '''
        newfault = Fault()
        #Get segment host, data dir, and DB oid to create fault
        (hostname, dirloc, oid) =  newfault.get_host_dir_oid()

        # Move database dir to take it offline
        DirPath = dirloc + '/base/'+ oid
        newfault.drop_dir(hostname, DirPath)
        #issue checkpoint
        newfault.issue_checkpoint()