You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Igor Kryvenko (JIRA)" <ji...@apache.org> on 2018/12/20 15:30:00 UTC

[jira] [Assigned] (HIVE-20859) clean up invocation of Worker/Cleaner/Initiator in test code

     [ https://issues.apache.org/jira/browse/HIVE-20859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Kryvenko reassigned HIVE-20859:
------------------------------------

    Assignee: Igor Kryvenko

> clean up invocation of Worker/Cleaner/Initiator in test code
> ------------------------------------------------------------
>
>                 Key: HIVE-20859
>                 URL: https://issues.apache.org/jira/browse/HIVE-20859
>             Project: Hive
>          Issue Type: Improvement
>          Components: Test, Transactions
>    Affects Versions: 3.0.0
>            Reporter: Eugene Koifman
>            Assignee: Igor Kryvenko
>            Priority: Minor
>         Attachments: HIVE-20859.01.patch
>
>
> there are many places like {{CompactorTest}} that use
> {code:java|title=CompactorTest.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();
> {code}
> should instead standardize on {{TestTxnCommands2.runWorker()}}
>  same for {{Cleaner}} and {{Initiator}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)