Fix removing leases

Description

The lease information is stored in two tables, i.e., hdfs_leases and hdfs_lease_paths with one-to-many relation. If there is an entry in the hdfs_leases and no corresponding entry in the hdfs_lease_paths then the lease manager does not remove the entry from the hdfs_leases table. The lease manager continuously print lease expiry message. We need to investigate it further as to why this happens and fix it.

```
2019-05-15 08:09:37,790 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Lease [Lease. Holder: HopsFS_DFSClient_NONMAPREDUCE_123308599_65, pendingcreates: 0] has expired hard limit
2019-05-15 08:09:39,795 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Lease [Lease. Holder: HopsFS_DFSClient_NONMAPREDUCE_123308599_65, pendingcreates: 0] has expired hard limit
2019-05-15 08:09:41,799 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Lease [Lease. Holder: HopsFS_DFSClient_NONMAPREDUCE_123308599_65, pendingcreates: 0] has expired hard limit
2019-05-15 08:09:43,804 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Lease [Lease. Holder: HopsFS_DFSClient_NONMAPREDUCE_123308599_65, pendingcreates: 0] has expired hard limit
2019-05-15 08:09:45,808 INFO org.apache.hadoop.hdfs.server.namenode.LeaseManager: Lease [Lease. Holder: HopsFS_DFSClient_NONMAPREDUCE_123308599_65, pendingcreates: 0] has expired hard limit
```

Status

Assignee

Salman Niazi

Reporter

Salman Niazi

Labels

None

Fix versions

Priority

Medium