Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 05A62200C3D for ; Tue, 14 Mar 2017 12:29:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0418F160B7E; Tue, 14 Mar 2017 11:29:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2512F160B7C for ; Tue, 14 Mar 2017 12:29:46 +0100 (CET) Received: (qmail 16144 invoked by uid 500); 14 Mar 2017 11:29:46 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 16131 invoked by uid 99); 14 Mar 2017 11:29:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 11:29:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 863D218E864 for ; Tue, 14 Mar 2017 11:29:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id TmVu2chQs6x9 for ; Tue, 14 Mar 2017 11:29:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F1B7A5FAF1 for ; Tue, 14 Mar 2017 11:29:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 1B4F5E08C3 for ; Tue, 14 Mar 2017 11:29:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A825F243AC for ; Tue, 14 Mar 2017 11:29:41 +0000 (UTC) Date: Tue, 14 Mar 2017 11:29:41 +0000 (UTC) From: "Andrey Gura (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (IGNITE-4587) Discontinue and remove CacheAtomicWriteOrderMode.CLOCK mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Mar 2017 11:29:48 -0000 [ https://issues.apache.org/jira/browse/IGNITE-4587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15907918#comment-15907918 ] Andrey Gura edited comment on IGNITE-4587 at 3/14/17 11:29 AM: --------------------------------------------------------------- [~dreamx], I've review your changes. See my comments below. Please, fix. # Class {{GridCacheAtomicFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheAtomicMultiNodeP2PDisabledFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheReplicatedAtomicMultiNodeFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheAtomicMessageCountSelfTest}}: methods {{testPartitionedPrimary()}} and {{testClientPrimary()}} should be renamed to {{testPartitioned()}} and {{testClient()}} respectively. # Class {{GridCacheAtomicNearCacheSelfTest}}: method {{startGridsLocal()}} confuses. Why {{Local}}? May be {{doStartGrids}} or something like. # Class {{GridCacheAtomicVersionComparator}}: {{ignoreTime}} parameter at {{compare}} method is unused and should be removed. # Class {{GridCacheInterceptorAbstractSelfTest}}: unused import and methods. # Class {{GridCacheMapEntry}}, method {{innerUpdate}}, lines 2172 and 2228: {{ignireTime}} variable is always {{true}}. Need remove usage. # Class {{GridCacheMultithreadedFailoverAbstractTest}}, method {{configuration()}}, line 221: Nested if could be combined with embraced. # Class {{GridCacheUtils}}: unused imports. # Class {{GridCacheUtils}}: Bug. Please fix array size and offsets in {{versionToBytes()}} and {{readVersion()}} methods. # Class {{IgniteUtils}}: Bug. Please fix offsets in {{writeVersion()}} and {{readVersion()}} methods. # Class {{GridCacheVersion}}: Bug. Integers will be overflowed in {{asGridUuid()}} method. Please replace by {{new UUID(topVer, nodeOrderDrId)}}. # Class {{GridCacheVersion}}: method {{fieldsCount()}} returns incorrect result. Use {{MessageCodeGenerator}} in order to generate correct code. # Class {{GridCacheVersionEx}}: incorrect implementations of {{fieldsCount()}}, {{writeTo()}} and {{readFrom()}} methods. Use {{MessageCodeGenerator}} in order to generate correct code. # Class {{GridCommonAbstractTest}}: unused imports. # Class {{GridCommonAbstractTest}}: method {{atomicClockModeDelay()}} should be removed. # Class {{GridDhtAtomicCache}}: I'm not sure about it. It seems that methos {{isFastMap()}} should not be removed. Could you please ask about it on dev list. Check also {{fastMap}} flag in {{GridNearAtomicUpdateFuture}} class. # Class {{GridDhtAtomicCache}}: Redundant {{catch}} blocks in {{lockEntriesMethod()}}, lines 2899 and 2914. # Class {{GridNearAtomicSingleUpdateFuture}}: Method {{mapSingleUpdate()}} creates different requests (like {{GridNearAtomicSingleUpdateInvokeRequest}}). For all this requests all instantiations have {{updateVer == null}}. Need to remove this prameter. The same for {{GridNearAtomicUpdateFuture}} class {{mapUpdate()}} and {{mapSingleUpdate()}} methods. # Class {{IgniteBenchmarkArguments}}: Comand line arguments {{"-wom", "--writeOrderMode"}} were removed. Please, check that there are not this arguments usges in {{modules/yardstick}}. # Class {{IgniteCacheExpiryPolicyAbstractTest}}: methods {{nearReaderUpdate()}} and {{nearPutAll()}}. It seems that all {{U.sleep()}} calls are redundant now. # Class {{IgniteCachePutRetryAbstractSelfTest}}: unused import. # Class {{IgniteConfiguration}}: fields {{clockSyncSamples}} and {{clockSyncFreq}}, corresponding methods and constants {{DFLT_CLOCK_SYNC_SAMPLES}} and {{DFLT_CLOCK_SYNC_FREQUENCY}} should be removed. # Class {{IgniteSystemProperties}}: Also I see a lot of removed tests. I need additional time for analyzing it. Thanks! was (Author: agura): [~dreamx], I've review your changes. See my comments below. Please, fix. # Class {{GridCacheAtomicFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheAtomicMultiNodeP2PDisabledFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheReplicatedAtomicMultiNodeFullApiSelfTest}}: method {{cacheConfiguration()}} can be removed because it just returns result of base class method. # Class {{GridCacheAtomicMessageCountSelfTest}}: methods {{testPartitionedPrimary()}} and {{testClientPrimary()}} should be renamed to {{testPartitioned()}} and {{testClient()}} respectively. # Class {{GridCacheAtomicNearCacheSelfTest}}: method {{startGridsLocal()}} confuses. Why {{Local}}? May be {{doStartGrids}} or something like. # Class {{GridCacheAtomicVersionComparator}}: {{ignoreTime}} parameter at {{compare}} method is unused and should be removed. # Class {{GridCacheInterceptorAbstractSelfTest}}: unused import and methods. # Class {{GridCacheMapEntry}}, method {{innerUpdate}}, lines 2172 and 2228: {{ignireTime}} variable is always {{true}}. Need remove usage. # Class {{GridCacheMultithreadedFailoverAbstractTest}}, method {{configuration()}}, line 221: Nested if could be combined with embraced. # Class {{GridCacheUtils}}: unused imports. # Class {{GridCacheUtils}}: Bug. Please fix array size and offsets in {{versionToBytes()}} and {{readVersion()}} methods. # Class {{IgniteUtils}}: Bug. Please fix offsets in {{writeVersion()}} and {{readVersion()}} methods. # Class {{GridCacheVersion}}: Bug. Integers will be overflowed in {{asGridUuid()}} method. Please replace by {{new UUID(topVer, nodeOrderDrId)}}. # Class {{GridCacheVersion}}: method {{fieldsCount()}} returns incorrect result. Use {{MessageCodeGenerator}} in order to generate correct code. # Class {{GridCacheVersionEx}}: incorrect implementations of {{fieldsCount()}}, {{writeTo()}} and {{readFrom()}} methods. Use {{MessageCodeGenerator}} in order to generate correct code. # Class {{GridCommonAbstractTest}}: unused imports. # Class {{GridCommonAbstractTest}}: method {{atomicClockModeDelay()}} should be removed. # Class {{GridDhtAtomicCache}}: I'm not sure about it. It seems that methos {{isFastMap()}} should not be removed. Could you please ask about it on dev list. Check also {{fastMap}} flag in {{GridNearAtomicUpdateFuture}} class. # Class {{GridDhtAtomicCache}}: Redundant {{catch}} blocks in {{lockEntriesMethod()}}, lines 2899 and 2914. # Class {{GridNearAtomicSingleUpdateFuture}}: Method {{mapSingleUpdate()}} creates different requests (like {{GridNearAtomicSingleUpdateInvokeRequest}}). For all this requests all instantiations have {{updateVer == null}}. Need to remove this prameter. The same for {{GridNearAtomicUpdateFuture}} class {{mapUpdate()}} and {{mapSingleUpdate()}} methods. # Class {{IgniteBenchmarkArguments}}: Comand line arguments {{"-wom", "--writeOrderMode"}} were removed. Please, check that there are not this arguments usges in {{modules/yardstick}}. # Class {{IgniteCacheExpiryPolicyAbstractTest}}: methods {{nearReaderUpdate()}} and {{nearPutAll()}}. It seems that all {{U.sleep()}} calls are redundant now. # Class {{IgniteCachePutRetryAbstractSelfTest}}: unused import. Also I see a lot of removed tests. I need additional time for analyzing it. Thanks! > Discontinue and remove CacheAtomicWriteOrderMode.CLOCK mode > ----------------------------------------------------------- > > Key: IGNITE-4587 > URL: https://issues.apache.org/jira/browse/IGNITE-4587 > Project: Ignite > Issue Type: Bug > Components: cache > Reporter: Denis Magda > Assignee: Maksim Kozlov > Fix For: 2.0 > > > {{CacheAtomicWriteOrderMode.CLOCK}} proved to be harmful in production due to timing issues. > It makes sense to remove it completely in 2.0 release. Migration guide has be updated: > https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+2.0+Migration+Guide -- This message was sent by Atlassian JIRA (v6.3.15#6346)