You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "ZanderXu (Jira)" <ji...@apache.org> on 2022/08/27 14:58:00 UTC
[jira] [Created] (HDFS-16748) DFSClient should diff the writing files with namespace Id and iNodeId.
ZanderXu created HDFS-16748:
-------------------------------
Summary: DFSClient should diff the writing files with namespace Id and iNodeId.
Key: HDFS-16748
URL: https://issues.apache.org/jira/browse/HDFS-16748
Project: Hadoop HDFS
Issue Type: Bug
Reporter: ZanderXu
Assignee: ZanderXu
DFSClient should diff the writing files with namespaceId and iNodeId, because the writing files may belongs to different namespace with the same iNodeId.
And the related code as bellows:
{code:java}
public void putFileBeingWritten(final long inodeId,
final DFSOutputStream out) {
synchronized(filesBeingWritten) {
filesBeingWritten.put(inodeId, out);
// update the last lease renewal time only when there was no
// writes. once there is one write stream open, the lease renewer
// thread keeps it updated well with in anyone's expiration time.
if (lastLeaseRenewal == 0) {
updateLastLeaseRenewal();
}
}
}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org