nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [nifi] alopresto commented on a change in pull request #4154: NIFI-7271 Make command timeout configurable for ShellUserGroupProvider
Date Fri, 20 Mar 2020 18:55:31 GMT
alopresto commented on a change in pull request #4154: NIFI-7271 Make command timeout configurable
for ShellUserGroupProvider
URL: https://github.com/apache/nifi/pull/4154#discussion_r395832946
 
 

 ##########
 File path: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-shell-authorizer/src/main/java/org/apache/nifi/authorization/util/ShellRunner.java
 ##########
 @@ -33,13 +33,18 @@
 
     static String SHELL = "sh";
     static String OPTS = "-c";
-    static Integer TIMEOUT = 60;
 
-    public static List<String> runShell(String command) throws IOException {
+    private final long timeoutSeconds;
+
+    public ShellRunner(final long timeoutSeconds) {
 
 Review comment:
   I'm going to truncate to an int just for cleanliness. Thanks. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message