Re: Many failing unit tests, prior to any changes. NoSuchFieldError: rpc_port

2016-11-02 Thread BORIS MELAMED
OK, I've created a new worktree. Did not create IDEA files there. Just ran
'ant', and then 'ant test', in a terminal window.
There, I'm not getting the 'java.lang.NoSuchFieldError: rpc_port' errors,
and only about 13 tests fail, some of them "crashing":

untitled text 9:1348: [junit] Testcase:
testStandardDirs(org.apache.cassandra.db.DirectoriesTest)FAILED
untitled text 9:1354: [junit] Test
org.apache.cassandra.db.DirectoriesTest FAILED
untitled text 9:1507: [junit] Test
org.apache.cassandra.db.RecoveryManagerFlushedTest FAILED (crashed)
untitled text 9:1526: [junit] Test
org.apache.cassandra.db.RecoveryManagerMissingHeaderTest FAILED (crashed)
untitled text 9:1545: [junit] Test
org.apache.cassandra.db.RecoveryManagerTest FAILED (crashed)
untitled text 9:1564: [junit] Test
org.apache.cassandra.db.RecoveryManagerTruncateTest FAILED (crashed)
untitled text 9:3422: [junit] Test
org.apache.cassandra.db.commitlog.CommitLogTest FAILED
untitled text 9:3459: [junit] Test
org.apache.cassandra.db.commitlog.CommitLogUpgradeTest FAILED
untitled text 9:3503: [junit] Test
org.apache.cassandra.db.commitlog.SegmentReaderTest FAILED
untitled text 9:4210: [junit] Testcase:
encryptedHints(org.apache.cassandra.hints.HintsEncryptionTest): FAILED
untitled text 9:4217: [junit] Test
org.apache.cassandra.hints.HintsEncryptionTest FAILED
untitled text 9:5055: [junit] Test
org.apache.cassandra.security.CipherFactoryTest FAILED
untitled text 9:5093: [junit] Test
org.apache.cassandra.security.EncryptionUtilsTest FAILED
untitled text 9:5275: [junit] Test
org.apache.cassandra.service.RemoveTest FAILED


*Boris Melamed*  |Software Engineer
*w:* ++972-545691126  *e: boris.mela...@weather.com
*
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>

On Wed, Nov 2, 2016 at 4:23 PM, Licata, Christopher (CONT) <
christopher.lic...@capitalone.com> wrote:

> Yea, sorry.  I never got that many failing tests.  Perhaps it could be
> environment variable related.
>
> Thanks,
> Christopher Licata
> Senior Software Engineer
> Featureless Tech Monsters
> Card Rewards
> 718.916.8940
>
>
>
> On 11/2/16, 10:10 AM, "BORIS MELAMED"  wrote:
>
> Actually, 279 out of 296 failing tests seem to fail with this same
> error:
> java.lang.NoSuchFieldError: rpc_port
> at org.apache.cassandra.OffsetAwareConfigurationLoader.loadConfig(
> OffsetAwareConfigurationLoader.java:52)
>
>
>
>
> 
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>


Re: Many failing unit tests, prior to any changes. NoSuchFieldError: rpc_port

2016-11-02 Thread BORIS MELAMED
Actually, 279 out of 296 failing tests seem to fail with this same error:
java.lang.NoSuchFieldError: rpc_port
at org.apache.cassandra.OffsetAwareConfigurationLoader.loadConfig(
OffsetAwareConfigurationLoader.java:52)


*Boris Melamed*  |Software Engineer
*w:* ++972-545691126  *e: boris.mela...@weather.com
*
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>

On Wed, Nov 2, 2016 at 3:22 PM, Licata, Christopher (CONT) <
christopher.lic...@capitalone.com> wrote:

> I have actually noticed the same thing when I was working on
> https://issues.apache.org/jira/browse/CASSANDRA-12485.  Even before I
> made any changes to cassandra-trunk.  I was seeing failing unit tests.  Not
> sure if the TriggersSchemaTest was the exact test though.
>
>
> Thanks,
> Christopher Licata
> Senior Software Engineer
> Capital One-Card Rewards
> 718.916.8940
>
>
>
> On 11/2/16, 5:02 AM, "BORIS MELAMED"  wrote:
>
> Thank you Nate, I followed those instructions as well, and I can
> run/debug
> Cassandra without issues. It's only when I run the test suite that I
> get
> those errors.
>
> (By the way, I meant to write OS-X, not iOS, of course)
>
> -Boris
>
> On Tue, Nov 1, 2016 at 8:24 PM, Nate McCall 
> wrote:
>
> > Hi Boris,
> > Did you see this section on the site:
> > http://cassandra.apache.org/doc/latest/development/ide.
> > html#setting-up-cassandra-in-intellij-idea
> >
> > I've not had a problem setting everything up in IntelliJ following
> > that process.
> >
> > On Wed, Nov 2, 2016 at 3:04 AM, BORIS MELAMED <
> boris.mela...@weather.com>
> > wrote:
> > > Hello,
> > >
> > > (If there is a more appropriate channel for posing my question,
> please
> > > point me to it.)
> > >
> > > I have created my own fork of the Cassandra trunk, and prior to
> making
> > any
> > > changes, have built and run 'build - test' in my IDEA env, iOS.
> > > I'm getting:
> > >
> > > Ant build completed with 296 errors and 792 warnings in 11m 57s at
> > > 10/31/16, 1:22 PM
> > >
> > > Running tests from command line seems to give the same results (I
> did not
> > > wait, but many similar errors).
> > >
> > > Many errors like this:
> > >
> > > Testcase: org.apache.cassandra.triggers.TriggersSchemaTest:
> Caused an
> > ERROR
> > > rpc_port
> > > java.lang.NoSuchFieldError: rpc_port
> > > at
> > > org.apache.cassandra.OffsetAwareConfigurationLoader.loadConfig(
> > OffsetAwareConfigurationLoader.java:52)
> > > at
> > > org.apache.cassandra.config.DatabaseDescriptor.loadConfig(
> > DatabaseDescriptor.java:261)
> > > at
> > > org.apache.cassandra.config.DatabaseDescriptor.
> daemonInitialization(
> > DatabaseDescriptor.java:140)
> > > at org.apache.cassandra.cql3.CQLTester.(CQLTester.
> java:101)
> > > at org.apache.cassandra.SchemaLoader.prepareServer(
> SchemaLoader.java:69)
> > > at org.apache.cassandra.SchemaLoader.loadSchema(
> SchemaLoader.java:51)
> > > at
> > > org.apache.cassandra.triggers.TriggersSchemaTest.beforeTest(
> > TriggersSchemaTest.java:45)
> > >
> > >
> > > Test org.apache.cassandra.triggers.TriggersSchemaTest FAILED
> > >
> > >
> > > But code shows the Config class to have this field defined:
> > >
> > > public int rpc_port = 9160;
> > >
> > > Any advice?
> > >
> > > ---
> > > *Boris Melamed*  |Software Engineer
> > > *w:* ++972-545691126  *e: boris.mela...@weather.com
> > > *
> > > <http://weather.com/apps> <http://weather.com/apps>
> > > <http://weather.com/apps> <http://weather.com/apps>
> > > <http://weather.com/apps> <http://weather.com/apps>
> >
>
>
>
> 
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.
>


Re: Many failing unit tests, prior to any changes. NoSuchFieldError: rpc_port

2016-11-02 Thread BORIS MELAMED
Thank you Nate, I followed those instructions as well, and I can run/debug
Cassandra without issues. It's only when I run the test suite that I get
those errors.

(By the way, I meant to write OS-X, not iOS, of course)

-Boris

On Tue, Nov 1, 2016 at 8:24 PM, Nate McCall  wrote:

> Hi Boris,
> Did you see this section on the site:
> http://cassandra.apache.org/doc/latest/development/ide.
> html#setting-up-cassandra-in-intellij-idea
>
> I've not had a problem setting everything up in IntelliJ following
> that process.
>
> On Wed, Nov 2, 2016 at 3:04 AM, BORIS MELAMED 
> wrote:
> > Hello,
> >
> > (If there is a more appropriate channel for posing my question, please
> > point me to it.)
> >
> > I have created my own fork of the Cassandra trunk, and prior to making
> any
> > changes, have built and run 'build - test' in my IDEA env, iOS.
> > I'm getting:
> >
> > Ant build completed with 296 errors and 792 warnings in 11m 57s at
> > 10/31/16, 1:22 PM
> >
> > Running tests from command line seems to give the same results (I did not
> > wait, but many similar errors).
> >
> > Many errors like this:
> >
> > Testcase: org.apache.cassandra.triggers.TriggersSchemaTest: Caused an
> ERROR
> > rpc_port
> > java.lang.NoSuchFieldError: rpc_port
> > at
> > org.apache.cassandra.OffsetAwareConfigurationLoader.loadConfig(
> OffsetAwareConfigurationLoader.java:52)
> > at
> > org.apache.cassandra.config.DatabaseDescriptor.loadConfig(
> DatabaseDescriptor.java:261)
> > at
> > org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(
> DatabaseDescriptor.java:140)
> > at org.apache.cassandra.cql3.CQLTester.(CQLTester.java:101)
> > at org.apache.cassandra.SchemaLoader.prepareServer(SchemaLoader.java:69)
> > at org.apache.cassandra.SchemaLoader.loadSchema(SchemaLoader.java:51)
> > at
> > org.apache.cassandra.triggers.TriggersSchemaTest.beforeTest(
> TriggersSchemaTest.java:45)
> >
> >
> > Test org.apache.cassandra.triggers.TriggersSchemaTest FAILED
> >
> >
> > But code shows the Config class to have this field defined:
> >
> > public int rpc_port = 9160;
> >
> > Any advice?
> >
> > ---
> > *Boris Melamed*  |Software Engineer
> > *w:* ++972-545691126  *e: boris.mela...@weather.com
> > *
> > <http://weather.com/apps> <http://weather.com/apps>
> > <http://weather.com/apps> <http://weather.com/apps>
> > <http://weather.com/apps> <http://weather.com/apps>
>


Many failing unit tests, prior to any changes. NoSuchFieldError: rpc_port

2016-11-01 Thread BORIS MELAMED
Hello,

(If there is a more appropriate channel for posing my question, please
point me to it.)

I have created my own fork of the Cassandra trunk, and prior to making any
changes, have built and run 'build - test' in my IDEA env, iOS.
I'm getting:

Ant build completed with 296 errors and 792 warnings in 11m 57s at
10/31/16, 1:22 PM

Running tests from command line seems to give the same results (I did not
wait, but many similar errors).

Many errors like this:

Testcase: org.apache.cassandra.triggers.TriggersSchemaTest: Caused an ERROR
rpc_port
java.lang.NoSuchFieldError: rpc_port
at
org.apache.cassandra.OffsetAwareConfigurationLoader.loadConfig(OffsetAwareConfigurationLoader.java:52)
at
org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:261)
at
org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:140)
at org.apache.cassandra.cql3.CQLTester.(CQLTester.java:101)
at org.apache.cassandra.SchemaLoader.prepareServer(SchemaLoader.java:69)
at org.apache.cassandra.SchemaLoader.loadSchema(SchemaLoader.java:51)
at
org.apache.cassandra.triggers.TriggersSchemaTest.beforeTest(TriggersSchemaTest.java:45)


Test org.apache.cassandra.triggers.TriggersSchemaTest FAILED


But code shows the Config class to have this field defined:

public int rpc_port = 9160;

Any advice?

---
*Boris Melamed*  |Software Engineer
*w:* ++972-545691126  *e: boris.mela...@weather.com
*
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>
<http://weather.com/apps> <http://weather.com/apps>