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 "Gautham Banasandra (Jira)" <ji...@apache.org> on 2021/10/04 18:40:00 UTC
[jira] [Created] (HDFS-16254) Cleanup protobuf on exit of
hdfs_allowSnapshot
Gautham Banasandra created HDFS-16254:
-----------------------------------------
Summary: Cleanup protobuf on exit of hdfs_allowSnapshot
Key: HDFS-16254
URL: https://issues.apache.org/jira/browse/HDFS-16254
Project: Hadoop HDFS
Issue Type: Bug
Components: libhdfs++, tools
Affects Versions: 3.4.0
Reporter: Gautham Banasandra
Assignee: Gautham Banasandra
Need to move the call google::protobuf::ShutdownProtobufLibrary() to main method instead of [AllowSnapshot::HandlePath|https://github.com/apache/hadoop/blob/35a8d48872a13438d4c4199b6ef5b902105e2eb2/hadoop-hdfs-project/hadoop-hdfs-native-client/src/main/native/libhdfspp/tools/hdfs-allow-snapshot/hdfs-allow-snapshot.cc#L116-L117] since we want the clean-up tasks to run only when the program exits.
The current implementation doesn't cause any issues since AllowSnapshot::HandlePath is called only once.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org