|
|
-
How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Jean-Marc Spaggiari 2013-01-02, 15:10
Hi,
When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml file seems to be for and old version of HBase (@@@VERSION@@@), this version is 0.94.4"
It seems I need to setup hbase.defaults.for.version.skip to true, but on the test, the configuration is created even before we can access a Before class. So it's failing right from the initialization.
What's the right way to run the tests under 0.94.4RC? How can I skip this test?
Thanks,
JM
+
Jean-Marc Spaggiari 2013-01-02, 15:10
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Ted Yu 2013-01-02, 15:30
I guess you're testing your patch for HBASE-7467.
You can use the tip of 0.94 codebase plus your patch. The following command should run all test cases:
mvn clean test -P runAllTests > result.txt &
Cheers
On Wed, Jan 2, 2013 at 7:10 AM, Jean-Marc Spaggiari <[EMAIL PROTECTED] > wrote:
> Hi, > > When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml > file seems to be for and old version of HBase (@@@VERSION@@@), this > version is 0.94.4" > > It seems I need to setup hbase.defaults.for.version.skip to true, but > on the test, the configuration is created even before we can access a > Before class. So it's failing right from the initialization. > > What's the right way to run the tests under 0.94.4RC? How can I skip this > test? > > Thanks, > > JM >
+
Ted Yu 2013-01-02, 15:30
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Jean-Marc Spaggiari 2013-01-02, 15:45
Exact, I'm running the test for 7467 ;)
I was trying to avoid to run ALL the tests to save some time. I have started them now. using dev-support/hbasetest.sh runAllTests
I will submit the patch as soon as I get a successful test.
I did the initial build/install using maven clean install -DskipTests.
I got the error when I tried to run the test using Eclipse. I will take a look into hbasetest.sh to see if the magic is inside ;)
JM
2013/1/2, Ted Yu <[EMAIL PROTECTED]>: > I guess you're testing your patch for HBASE-7467. > > You can use the tip of 0.94 codebase plus your patch. > The following command should run all test cases: > > mvn clean test -P runAllTests > result.txt & > > Cheers > > On Wed, Jan 2, 2013 at 7:10 AM, Jean-Marc Spaggiari > <[EMAIL PROTECTED] >> wrote: > >> Hi, >> >> When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml >> file seems to be for and old version of HBase (@@@VERSION@@@), this >> version is 0.94.4" >> >> It seems I need to setup hbase.defaults.for.version.skip to true, but >> on the test, the configuration is created even before we can access a >> Before class. So it's failing right from the initialization. >> >> What's the right way to run the tests under 0.94.4RC? How can I skip this >> test? >> >> Thanks, >> >> JM >> >
+
Jean-Marc Spaggiari 2013-01-02, 15:45
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Vandana Ayyalasomayajula 2013-01-02, 16:24
Hi Jean,
Try adding the hbase-site.xml from src/test/ resources to your test class path and running the test.
Thanks Vandana
On Jan 2, 2013, at 7:46 AM, "Jean-Marc Spaggiari" <[EMAIL PROTECTED]> wrote:
> Exact, I'm running the test for 7467 ;) > > I was trying to avoid to run ALL the tests to save some time. I have > started them now. using dev-support/hbasetest.sh runAllTests > > I will submit the patch as soon as I get a successful test. > > I did the initial build/install using maven clean install -DskipTests. > > I got the error when I tried to run the test using Eclipse. I will > take a look into hbasetest.sh to see if the magic is inside ;) > > JM > > 2013/1/2, Ted Yu <[EMAIL PROTECTED]>: >> I guess you're testing your patch for HBASE-7467. >> >> You can use the tip of 0.94 codebase plus your patch. >> The following command should run all test cases: >> >> mvn clean test -P runAllTests > result.txt & >> >> Cheers >> >> On Wed, Jan 2, 2013 at 7:10 AM, Jean-Marc Spaggiari >> <[EMAIL PROTECTED] >>> wrote: >> >>> Hi, >>> >>> When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml >>> file seems to be for and old version of HBase (@@@VERSION@@@), this >>> version is 0.94.4" >>> >>> It seems I need to setup hbase.defaults.for.version.skip to true, but >>> on the test, the configuration is created even before we can access a >>> Before class. So it's failing right from the initialization. >>> >>> What's the right way to run the tests under 0.94.4RC? How can I skip this >>> test? >>> >>> Thanks, >>> >>> JM >>
+
Vandana Ayyalasomayajula 2013-01-02, 16:24
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Jean-Marc Spaggiari 2013-01-02, 17:03
Nicolas, does it mean I should not rely on the hbasetest.sh results for my code validation? What's the right way to run the tests on 0.94?
Vandana, thanks for the suggestion! I will try that too.
JM
2013/1/2, Vandana Ayyalasomayajula <[EMAIL PROTECTED]>: > Hi Jean, > > Try adding the hbase-site.xml from src/test/ resources to your test class > path and running the test. > > Thanks > Vandana > > On Jan 2, 2013, at 7:46 AM, "Jean-Marc Spaggiari" <[EMAIL PROTECTED]> > wrote: > >> Exact, I'm running the test for 7467 ;) >> >> I was trying to avoid to run ALL the tests to save some time. I have >> started them now. using dev-support/hbasetest.sh runAllTests >> >> I will submit the patch as soon as I get a successful test. >> >> I did the initial build/install using maven clean install -DskipTests. >> >> I got the error when I tried to run the test using Eclipse. I will >> take a look into hbasetest.sh to see if the magic is inside ;) >> >> JM >> >> 2013/1/2, Ted Yu <[EMAIL PROTECTED]>: >>> I guess you're testing your patch for HBASE-7467. >>> >>> You can use the tip of 0.94 codebase plus your patch. >>> The following command should run all test cases: >>> >>> mvn clean test -P runAllTests > result.txt & >>> >>> Cheers >>> >>> On Wed, Jan 2, 2013 at 7:10 AM, Jean-Marc Spaggiari >>> <[EMAIL PROTECTED] >>>> wrote: >>> >>>> Hi, >>>> >>>> When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml >>>> file seems to be for and old version of HBase (@@@VERSION@@@), this >>>> version is 0.94.4" >>>> >>>> It seems I need to setup hbase.defaults.for.version.skip to true, but >>>> on the test, the configuration is created even before we can access a >>>> Before class. So it's failing right from the initialization. >>>> >>>> What's the right way to run the tests under 0.94.4RC? How can I skip >>>> this >>>> test? >>>> >>>> Thanks, >>>> >>>> JM >>> >
+
Jean-Marc Spaggiari 2013-01-02, 17:03
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Andrew Purtell 2013-01-02, 17:19
This is what I use for running the unit test suite on 0.94:
$ mvn clean test -PrunAllTests -Djava.net.preferIPv4Stack=true
(and also -Psecurity, but you don't need this unless building with security features added)
and for running a single test:
$ mvn clean test -PrunAllTests -Djava.net.preferIPv4Stack=true -Dtest=$TESTCLASS
(where $TESTCLASS might be for example TestAcidGuarantees)
I don't know how to exclude specific tests.
On Wed, Jan 2, 2013 at 9:03 AM, Jean-Marc Spaggiari <[EMAIL PROTECTED] > wrote:
> Nicolas, does it mean I should not rely on the hbasetest.sh results > for my code validation? What's the right way to run the tests on 0.94? > > Vandana, thanks for the suggestion! I will try that too. > > JM > > 2013/1/2, Vandana Ayyalasomayajula <[EMAIL PROTECTED]>: > > Hi Jean, > > > > Try adding the hbase-site.xml from src/test/ resources to your test class > > path and running the test. > > > > Thanks > > Vandana > > > > On Jan 2, 2013, at 7:46 AM, "Jean-Marc Spaggiari" < > [EMAIL PROTECTED]> > > wrote: > > > >> Exact, I'm running the test for 7467 ;) > >> > >> I was trying to avoid to run ALL the tests to save some time. I have > >> started them now. using dev-support/hbasetest.sh runAllTests > >> > >> I will submit the patch as soon as I get a successful test. > >> > >> I did the initial build/install using maven clean install -DskipTests. > >> > >> I got the error when I tried to run the test using Eclipse. I will > >> take a look into hbasetest.sh to see if the magic is inside ;) > >> > >> JM > >> > >> 2013/1/2, Ted Yu <[EMAIL PROTECTED]>: > >>> I guess you're testing your patch for HBASE-7467. > >>> > >>> You can use the tip of 0.94 codebase plus your patch. > >>> The following command should run all test cases: > >>> > >>> mvn clean test -P runAllTests > result.txt & > >>> > >>> Cheers > >>> > >>> On Wed, Jan 2, 2013 at 7:10 AM, Jean-Marc Spaggiari > >>> <[EMAIL PROTECTED] > >>>> wrote: > >>> > >>>> Hi, > >>>> > >>>> When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml > >>>> file seems to be for and old version of HBase (@@@VERSION@@@), this > >>>> version is 0.94.4" > >>>> > >>>> It seems I need to setup hbase.defaults.for.version.skip to true, but > >>>> on the test, the configuration is created even before we can access a > >>>> Before class. So it's failing right from the initialization. > >>>> > >>>> What's the right way to run the tests under 0.94.4RC? How can I skip > >>>> this > >>>> test? > >>>> > >>>> Thanks, > >>>> > >>>> JM > >>> > > >
-- Best regards,
- Andy
Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)
+
Andrew Purtell 2013-01-02, 17:19
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Nicolas Liochon 2013-01-02, 17:15
If it works, it's ok: it's not going to give you wrong results. Just that it adds nothing to a plain mvn test. So if it worked for you on this patch, then you're done :-).
This should be enough most most cases: mvn test
If you want to play it safe, you will run all the tests before sending the patch. That's mvn test -P runAllTests
And this should work. If you have a strange error, you can clean the env with a mvn clean install -DskipTests.
'P runAllTests' adds some extra tests and increases the parallelization, but does not change the environment. I'm gonna have a look at the JIRA you're working on to see if there something that could explain the issue you're having. On Wed, Jan 2, 2013 at 6:03 PM, Jean-Marc Spaggiari <[EMAIL PROTECTED] > wrote:
> for my code validation? What's the right way to run the tests on 0.94?
+
Nicolas Liochon 2013-01-02, 17:15
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Nicolas Liochon 2013-01-02, 15:59
hbasetest.sh was developed before we had the parallelism by maven surefire. It's not really maintained anymore (actually it's somewhere in my todo list to remove it). But for sure there is no magic there :-).
On Wed, Jan 2, 2013 at 4:45 PM, Jean-Marc Spaggiari <[EMAIL PROTECTED] > wrote:
> take a look into hbasetest.sh to see if the magic is inside ;) >
+
Nicolas Liochon 2013-01-02, 15:59
-
Re: How to run HBase tests against 0.94? (seems to be for and old version of HBase)
Nicolas Liochon 2013-01-02, 15:22
Hi Jean-Marc,
I'm not aware of any required magic, butI haven't tested the RC. Have you tried to do a maven clean install -DskipTests?
Nicolas On Wed, Jan 2, 2013 at 4:10 PM, Jean-Marc Spaggiari <[EMAIL PROTECTED] > wrote:
> Hi, > > When I try to run the tests on 0.94.4RC I'm getting "hbase-default.xml > file seems to be for and old version of HBase (@@@VERSION@@@), this > version is 0.94.4" > > It seems I need to setup hbase.defaults.for.version.skip to true, but > on the test, the configuration is created even before we can access a > Before class. So it's failing right from the initialization. > > What's the right way to run the tests under 0.94.4RC? How can I skip this > test? > > Thanks, > > JM >
+
Nicolas Liochon 2013-01-02, 15:22
|
|