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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Test, Transactions
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: