[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cassandra-dev
Subject:    Re: Slow unit tests with Cassandra 4.x on macOS
From:       Jacek Lewandowski <lewandowski.jacek () gmail ! com>
Date:       2022-06-22 7:52:43
Message-ID: CAOyUaq8N=UWeBkjvzSY73v43A4uVmJ1yyp-SGEpW6XLmMKWdsg () mail ! gmail ! com
[Download RAW message or body]

Hi Johannes,

Have you already managed to fix the issue? If not, one thing that comes to
my mind given you said it works fast on Linux and slow on Mac, is that you
may have misconfigured hostname in your system. A simple test would be to
just measure the time you need to call:

InetAddress.getLocalHost()

If this is not the case, please share some small reproduction example, I'll
try to figure it out

Thanks,
- - -- --- ----- -------- -------------
Jacek Lewandowski


On Thu, Jun 9, 2022 at 8:49 PM Johannes Wei=C3=9Fl <jargon@molb.org> wrote:

> Hi Jacek,
>
> The unit tests are from the company I work at, so I cannot share any
> link. They repeatedly create and drop schemas as part of the unit test
> setup and teardown methods.
>
> If it helps, I can provide minimal executable examples, but I thought
> maybe the problem is already known (after all, I guess some Cassandra
> developers are using macOS)?
>
> Johannes
>
> On Thu, Jun 02, 2022 at 08:56AM +0200, Jacek Lewandowski wrote:
> > Which tests exactly?
> >
> > - - -- --- ----- -------- -------------
> > Jacek Lewandowski
> >
> > On Thu, Jun 2, 2022 at 8:39 AM Erick Ramirez <erickramirezau@apache.org=
>
> wrote:
> > > Johannes, I've copied the Dev ML to hopefully get a wider audience.
> Cheers!
> > >
> > > On Wed, 1 Jun 2022 at 21:25, Johannes Wei=C3=9Fl <jargon@molb.org> wr=
ote:
> > > > Hello,
> > > >
> > > > We noticed that our unit tests are way slower on macOS after the
> upgrade
> > > > from Cassandra 3.11.x to 4.x, e.g. over 8 minutes instead of 30
> seconds (!).
> > > > On Linux the duration stays more or less the same.
> > > >
> > > > After debugging, we found that operations like "DROP KEYSPACE" seem
> > > > responsible for the increase. Also interesting: If Cassandra is
> started
> > > > via Docker on macOS, the tests run as fast as on Cassandra 3.11.x
> again.
> > > >
> > > > Is this a known phenomenon? Do others experience it as well?
> > > >
> > > > Thanks,
> > > > Johannes
>

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi \
Johannes,</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" \
style="font-family:verdana,sans-serif">Have you already managed to fix the issue? If \
not, one thing that comes to my mind given you said it works fast on Linux and slow \
on Mac, is that you may have misconfigured hostname in your system. A simple test \
would be to just measure the time you need to call:</div><div class="gmail_default" \
style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" \
style="font-family:verdana,sans-serif">InetAddress.getLocalHost()</div><div \
class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div \
class="gmail_default" style="font-family:verdana,sans-serif">If this is not the case, \
please share some small reproduction example, I&#39;ll try to figure it out</div><div \
class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div \
class="gmail_default" style="font-family:verdana,sans-serif">Thanks,</div><div><div \
dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div \
dir="ltr"><font face="verdana, sans-serif">- - -- --- ----- -------- \
-------------<br>Jacek Lewandowski</font></div></div></div><br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 9, 2022 at 8:49 PM \
Johannes Weißl &lt;<a href="mailto:jargon@molb.org">jargon@molb.org</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Jacek,<br> <br>
The unit tests are from the company I work at, so I cannot share any<br>
link. They repeatedly create and drop schemas as part of the unit test<br>
setup and teardown methods.<br>
<br>
If it helps, I can provide minimal executable examples, but I thought<br>
maybe the problem is already known (after all, I guess some Cassandra<br>
developers are using macOS)?<br>
<br>
Johannes<br>
<br>
On Thu, Jun 02, 2022 at 08:56AM +0200, Jacek Lewandowski wrote:<br>
&gt; Which tests exactly?<br>
&gt; <br>
&gt; - - -- --- ----- -------- -------------<br>
&gt; Jacek Lewandowski<br>
&gt; <br>
&gt; On Thu, Jun 2, 2022 at 8:39 AM Erick Ramirez &lt;<a \
href="mailto:erickramirezau@apache.org" \
target="_blank">erickramirezau@apache.org</a>&gt; wrote:<br> &gt; &gt; Johannes, \
I&#39;ve copied the Dev ML to hopefully get a wider audience. Cheers!<br> &gt; &gt; \
<br> &gt; &gt; On Wed, 1 Jun 2022 at 21:25, Johannes Weißl &lt;<a \
href="mailto:jargon@molb.org" target="_blank">jargon@molb.org</a>&gt; wrote:<br> &gt; \
&gt; &gt; Hello,<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; We noticed that our unit tests are way slower on macOS after the \
upgrade<br> &gt; &gt; &gt; from Cassandra 3.11.x to 4.x, e.g. over 8 minutes instead \
of 30 seconds (!).<br> &gt; &gt; &gt; On Linux the duration stays more or less the \
same.<br> &gt; &gt; &gt; <br>
&gt; &gt; &gt; After debugging, we found that operations like &quot;DROP \
KEYSPACE&quot; seem<br> &gt; &gt; &gt; responsible for the increase. Also \
interesting: If Cassandra is started<br> &gt; &gt; &gt; via Docker on macOS, the \
tests run as fast as on Cassandra 3.11.x again.<br> &gt; &gt; &gt; <br>
&gt; &gt; &gt; Is this a known phenomenon? Do others experience it as well?<br>
&gt; &gt; &gt; <br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; Johannes<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic