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-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to