@@ -290,49 +290,24 @@ protected void doIt() {
290290 }
291291
292292 // Build an Element Path for each database. This will be use to divide the work.
293- // int threadCount = getParent().getConfig().getParallelism();
294-
295-
296- // List<ReportCounter> counters = new ArrayList<ReportCounter>();
297293 int i = 0 ;
298294 counterGroup .addAndGetTaskState (TaskState .CONSTRUCTED , dbs .length );
299295 for (String database : dbs ) {
300296 DbPaths paths = new DbPaths (database , this );
301297 paths .setCommandChecks (this .getCommandChecks ());
302298 paths .setSkipCommandCheck (this .getSkipCommandCheck ());
303299 paths .setCounterGroup (counterGroup );
304- // paths.error = this.error;
305- // paths.success = this.success;
306300 if (paths .init ()) {
307- // paths.setStatus(CONSTRUCTED);
308- // pathsList.add(paths);
309301 } else {
310302 throw new RuntimeException ("Issue establishing a connection to HDFS. " +
311303 "Check credentials(kerberos), configs(/etc/hadoop/conf), " +
312304 "and/or availability of the HDFS service. " +
313305 "Can you run an 'hdfs' cli command successfully?" );
314306 }
315-
316- // paths.setStatus(WAITING);
317- // counters.add(paths.getCounter());
318307 i ++;
319308 LOG .info (getDisplayName () + " adding paths for db: " + database );
320- // getParent().getReporter().addCounter(getId() + ":" + getDisplayName(), paths.getCounter());
321309 // Add Runnable to Main ThreadPool
322310 Future <String > sf = getParent ().getTaskThreadPool ().submit (paths );
323- // ScheduledFuture<String> sf = getParent().getThreadPool().schedule(paths, 10, MILLISECONDS);
324- // getParent().addProcess(sf);
325- // try {s
326- // while (getParent().getProcessThreads().size() > 100) {
327- // try {
328- // Thread.sleep(1000);
329- // } catch (InterruptedException ie) {
330- // //
331- // }
332- // }
333- // } catch (ConcurrentModificationException cme) {
334- // //
335- // }
336311 }
337312
338313 if (getCommandChecks () == null ) {
0 commit comments