Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6428517AEA for ; Thu, 15 Oct 2015 12:41:01 +0000 (UTC) Received: (qmail 38696 invoked by uid 500); 15 Oct 2015 12:41:01 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 38655 invoked by uid 500); 15 Oct 2015 12:41:01 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 38644 invoked by uid 99); 15 Oct 2015 12:41:00 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 12:41:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 716D4C4B2B for ; Thu, 15 Oct 2015 12:41:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Status: No, score=2.979 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id N-qye4q144Wk for ; Thu, 15 Oct 2015 12:40:59 +0000 (UTC) Received: from mail-qk0-f179.google.com (mail-qk0-f179.google.com [209.85.220.179]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5D1AB21165 for ; Thu, 15 Oct 2015 12:40:59 +0000 (UTC) Received: by qkht68 with SMTP id t68so35745834qkh.3 for ; Thu, 15 Oct 2015 05:40:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=ApanGsOgBmrymY7aVKoNyFD3vZb2axYKEllz2IVfLZM=; b=HJpB8B927hsNZ+2+7zQobkef3tfSjZKaAYJswcQRXW4K2v62HBQjKaLxFzXGrs2vAk 3HIW+vhycLW+SXbqj7nUOqrFHJAAEEntsLGnhLDv3VWYwanwyTlhM/qHU2xMPATQeugZ V9WZ1y1YyDKLVtvo2izA98C+R3nGkDRGE1CKG5szMw5UuuaMv1IlZZtFKW1vloN0XauA 70zhX2616Unsb0Fu/DrbbQEanIp2t+BmV3de3D2pDEuCl7a1PL9SoPNSYccoS9PgvzQ5 IsnQUFdcGNPmq8fAvwwZWVeO3LUhx758piNWwi/j0nWjTKuQuVJ5wbs5I2BNwHimEPLz lRMA== X-Gm-Message-State: ALoCoQnuysU8QVSdUDc7YwcxqFTtDTGGK8bYftW6vrLT/yWBHRQ2hxxn2cdYVZkeoXd/N+8NVT9b MIME-Version: 1.0 X-Received: by 10.55.24.193 with SMTP id 62mr11163169qky.24.1444912858632; Thu, 15 Oct 2015 05:40:58 -0700 (PDT) Received: by 10.140.20.167 with HTTP; Thu, 15 Oct 2015 05:40:58 -0700 (PDT) Date: Thu, 15 Oct 2015 15:40:58 +0300 Message-ID: Subject: Do we need "IgniteCache.randomEntry()" method? From: Vladimir Ozerov To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a1144178cababba052223fd69 --001a1144178cababba052223fd69 Content-Type: text/plain; charset=UTF-8 Igniters, We have the ticket about broken randomEntry() method: https://issues.apache.org/jira/browse/IGNITE-512 This method can return null even if cache is not empty. And it is even impossible to return an entry in constant time provided that concurrent deletes and expirations could occur. Do we really need this method? As for me it is better to deprecate it and do not spend any efforts trying to make it work. Thoughts? --001a1144178cababba052223fd69--