hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maddineni Sukumar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-17900) VerifyReplication - input param variables declared as static causing issues to run VerifyReplication multiple times in single JVM(mainly for unit tests)
Date Tue, 11 Apr 2017 06:49:41 GMT
Maddineni Sukumar created HBASE-17900:
-----------------------------------------

             Summary: VerifyReplication  - input param variables declared as static causing
issues to run VerifyReplication multiple times in single JVM(mainly for unit tests)
                 Key: HBASE-17900
                 URL: https://issues.apache.org/jira/browse/HBASE-17900
             Project: HBase
          Issue Type: Bug
          Components: Replication
    Affects Versions: 1.3.1, 2.0.0
            Reporter: Maddineni Sukumar
            Assignee: Maddineni Sukumar
            Priority: Minor


VerifyReplication  - input param variables declared as static causing issues to run VerifyReplication
multiple times in single JVM(mainly for unit tests)

Input params related variables are declared as static like below .

static long startTime = 0;
static long endTime = Long.MAX_VALUE;


So if I want to run VerifyReplication of table A and table B one after another in single JVM
then while running for Table B it is running with both options provided during Table A and
Table B  because of static input variables. 

We need to make these variables as class level variables or use some cleanup before each run.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message