Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 28032 invoked from network); 10 May 2010 13:10:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 13:10:25 -0000 Received: (qmail 82368 invoked by uid 500); 10 May 2010 13:10:24 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 82349 invoked by uid 500); 10 May 2010 13:10:24 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 82341 invoked by uid 99); 10 May 2010 13:10:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 13:10:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dsimeonov@gmail.com designates 74.125.83.44 as permitted sender) Received: from [74.125.83.44] (HELO mail-gw0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 13:10:16 +0000 Received: by gwaa12 with SMTP id a12so1963833gwa.31 for ; Mon, 10 May 2010 06:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=XJZJNG6HycUIu9w51xigaJKfZ/EuJbIbn5Dzghai11c=; b=SDjZz8OfFbPL7LM1g3Cjq5C8AwuWBqwJLMC4WNede/p1fV36YumBZYcBV5phRl3V+p F8sciAaGfdS56PCbPHBwoQRqaSPpxLn6F5aIqXD0ejGrlkLubAiZbBbISTIbrtjMHloG wXpu3yVnlnLt0J0u9KzNZfdih5eUgOG/PWDX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hEwgnempfu1QxV4yL4dfGwydFgug9QEc4ZU7MVYHcn7QZbzxbOQ1DNjDllxbZyiDhr 79qPk75/L8h5m2M3AQnLG3NVS6m6ssugxHiI5QvA2MvUpwa3SdusOIvEDBydYPKA892V IHrS3qDhHf+jyPL8PPyp0u5kxF72amuVqWMIs= MIME-Version: 1.0 Received: by 10.151.92.11 with SMTP id u11mr8808829ybl.205.1273496991645; Mon, 10 May 2010 06:09:51 -0700 (PDT) Received: by 10.100.152.11 with HTTP; Mon, 10 May 2010 06:09:51 -0700 (PDT) Date: Mon, 10 May 2010 16:09:51 +0300 Message-ID: Subject: Re: busy thread on IncomingStreamReader ? From: =?UTF-8?B?0JTQsNC90LjQtdC7INCh0LjQvNC10L7QvdC+0LI=?= To: user@cassandra.apache.org, ingramchen@gmail.com Content-Type: multipart/alternative; boundary=000e0cd2578ecf76ce04863d1f8d X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2578ecf76ce04863d1f8d Content-Type: text/plain; charset=UTF-8 Hi, I've experienced the same problem, two nodes got stuck with CPU at 99% and the following source code from IncomingStreamReader class: while (bytesRead < pendingFile.getExpectedBytes()) { bytesRead += fc.transferFrom(socketChannel, bytesRead, FileStreamTask.CHUNK_SIZE); pendingFile.update(bytesRead); } the cycle seems to loop forever... after both Cassandra instances were restarted the problem didn't occur. Best regards, Daniel. --000e0cd2578ecf76ce04863d1f8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,
=C2=A0=C2=A0I've experienced the same problem, two nodes got st= uck with CPU at 99% and the following source code from IncomingStreamReader= class:

while (bytesRead < pendingFile.get= ExpectedBytes()) {
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0bytesRead= +=3D fc.transferFrom(socketChannel, bytesRead, FileStreamTask.CHUNK_SIZE);=
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0pen= dingFile.update(bytesRead);
=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0}

the cycle seems to loop forever...
after both Cassandra instances were restarted the problem didn't o= ccur.=C2=A0

Best regards, Daniel.
--000e0cd2578ecf76ce04863d1f8d--