Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20859

clean up invocation of Worker/Cleaner/Initiator in test code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • Test, Transactions
    • None
    • n/a

    Description

      there are many places like CompactorTest that use

      TestCompactor.java
      AtomicBoolean stop = new AtomicBoolean(true);
      Worker t = new Worker();
      t.setThreadId((int) t.getId());
      t.setConf(hiveConf);
      AtomicBoolean looped = new AtomicBoolean();
      t.init(stop, looped);
      t.run();
      

      should instead standardize on TestTxnCommands2.runWorker()
      same for Cleaner and Initiator

      Attachments

        1. HIVE-20859.01.patch
          23 kB
          Igor Kryvenko

        Activity

          People

            ikryvenko Igor Kryvenko
            ekoifman Eugene Koifman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: