[
https://issues.apache.org/jira/browse/IGNITE-15042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17374624#comment-17374624
]
Sergei Ryzhov edited comment on IGNITE-15042 at 7/5/21, 7:54 AM:
-----------------------------------------------------------------
if you request toString with some time difference, then they will not be equal
because of the ignite field
now affinity.toString looks like this:
{code:java}
RendezvousAffinityFunction [parts=1024, mask=1023, exclNeighbors=false,
exclNeighborsWarn=false, backupFilter=null, affinityBackupFilter=null,
ignite=IgniteKernal [longJVMPauseDetector=LongJVMPauseDetector
[workerRef=Thread[jvm-pause-detector-worker,5,main], longPausesCnt=0,
longPausesTotalDuration=0, lastWakeUpTime=1625152370017,
longPausesTimestamps=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], longPausesDurations=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0]], cfg=IgniteConfiguration
[igniteInstanceName=query.SqlSystemViewsSelfTestBug, pubPoolSize=12,
svcPoolSize=12, callbackPoolSize=12, stripedPoolSize=12, sysPoolSize=12,
mgmtPoolSize=4, dataStreamerPoolSize=12, utilityCachePoolSize=12,
utilityCacheKeepAliveTime=60000, p2pPoolSize=2, qryPoolSize=12,
buildIdxPoolSize=3, igniteHome=/Users/sega/work/ignite,
igniteWorkDir=/Users/sega/work/ignite/work,
mbeanSrv=com.sun.jmx.mbeanserver.JmxMBeanServer@d65d04c,
nodeId=df77e872-47ea-4312-a747-0e67f1dc8a4a, marsh=BinaryMarshaller [],
marshLocJobs=false, daemon=false, p2pEnabled=true, netTimeout=10000,
netCompressionLevel=1, sndRetryDelay=1000, sndRetryCnt=3,
metricsHistSize=10000, metricsUpdateFreq=1000,
metricsExpTime=9223372036854775807, discoSpi=TcpDiscoverySpi [addrRslvr=null,
addressFilter=null, sockTimeout=5000, ackTimeout=5000, marsh=JdkMarshaller
[clsFilter=org.apache.ignite.marshaller.MarshallerUtils$1@2839d45c],
reconCnt=10, reconDelay=2000, maxAckTimeout=600000, soLinger=0,
forceSrvMode=false, clientReconnectDisabled=false, internalLsnr=null,
skipAddrsRandomization=false], segPlc=STOP, segResolveAttempts=2,
waitForSegOnStart=true, allResolversPassReq=true, segChkFreq=10000,
commSpi=TcpCommunicationSpi
[connectGate=org.apache.ignite.spi.communication.tcp.internal.ConnectGateway@a185a5d,
ctxInitLatch=java.util.concurrent.CountDownLatch@1ff5a7f5[Count = 0],
stopping=false,
clientPool=org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool@7f772214,
nioSrvWrapper=org.apache.ignite.spi.communication.tcp.internal.GridNioServerWrapper@38a478c5,
stateProvider=org.apache.ignite.spi.communication.tcp.internal.ClusterStateProvider@1581531b],
evtSpi=MemoryEventStorageSpi [expireAgeMs=9223372036854775807,
expireCnt=10000, filter=null], colSpi=NoopCollisionSpi [],
deploySpi=LocalDeploymentSpi [],
indexingSpi=org.apache.ignite.spi.indexing.noop.NoopIndexingSpi@2ed4dcfc,
addrRslvr=null,
encryptionSpi=org.apache.ignite.spi.encryption.noop.NoopEncryptionSpi@79a079a0,
tracingSpi=org.apache.ignite.spi.tracing.NoopTracingSpi@116e1adc,
clientMode=false, rebalanceThreadPoolSize=3, rebalanceTimeout=10000,
rebalanceBatchesPrefetchCnt=3, rebalanceThrottle=0, rebalanceBatchSize=524288,
txCfg=TransactionConfiguration [txSerEnabled=false,
dfltIsolation=REPEATABLE_READ, dfltConcurrency=PESSIMISTIC, dfltTxTimeout=0,
txTimeoutOnPartitionMapExchange=0, deadlockTimeout=10000,
pessimisticTxLogSize=0, pessimisticTxLogLinger=10000, tmLookupClsName=null,
txManagerFactory=null, useJtaSync=false], cacheSanityCheckEnabled=true,
discoStartupDelay=60000, deployMode=SHARED, p2pMissedCacheSize=100,
locHost=127.0.0.1, timeSrvPortBase=31100, timeSrvPortRange=100,
failureDetectionTimeout=10000, sysWorkerBlockedTimeout=null,
clientFailureDetectionTimeout=10000, metricsLogFreq=0, connectorCfg=null,
odbcCfg=null, warmupClos=null, atomicCfg=AtomicConfiguration
[seqReserveSize=1000, cacheMode=PARTITIONED, backups=1, aff=null,
grpName=null], classLdr=null, sslCtxFactory=null, platformCfg=null,
binaryCfg=null, memCfg=null, pstCfg=null, dsCfg=DataStorageConfiguration
[sysRegionInitSize=41943040, sysRegionMaxSize=104857600, pageSize=4096,
concLvl=0, dfltDataRegConf=DataRegionConfiguration [name=def,
maxSize=268435456, initSize=268435456, swapPath=null,
pageEvictionMode=DISABLED, pageReplacementMode=CLOCK, evictionThreshold=0.9,
emptyPagesPoolSize=100, metricsEnabled=false, metricsSubIntervalCount=5,
metricsRateTimeInterval=60000, persistenceEnabled=true,
checkpointPageBufSize=0, lazyMemoryAllocation=true, warmUpCfg=null],
dataRegions=DataRegionConfiguration[] [DataRegionConfiguration [name=dr1,
maxSize=268435456, initSize=268435456, swapPath=null,
pageEvictionMode=DISABLED, pageReplacementMode=CLOCK, evictionThreshold=0.9,
emptyPagesPoolSize=100, metricsEnabled=false, metricsSubIntervalCount=5,
metricsRateTimeInterval=60000, persistenceEnabled=false,
checkpointPageBufSize=0, lazyMemoryAllocation=true, warmUpCfg=null],
DataRegionConfiguration [name=dr2, maxSize=268435456, initSize=268435456,
swapPath=null, pageEvictionMode=DISABLED, pageReplacementMode=CLOCK,
evictionThreshold=0.9, emptyPagesPoolSize=100, metricsEnabled=false,
metricsSubIntervalCount=5, metricsRateTimeInterval=60000,
persistenceEnabled=false, checkpointPageBufSize=0, lazyMemoryAllocation=true,
warmUpCfg=null], DataRegionConfiguration [name=dr3, maxSize=268435456,
initSize=268435456, swapPath=null, pageEvictionMode=DISABLED,
pageReplacementMode=CLOCK, evictionThreshold=0.9, emptyPagesPoolSize=100,
metricsEnabled=false, metricsSubIntervalCount=5, metricsRateTimeInterval=60000,
persistenceEnabled=false, checkpointPageBufSize=0, lazyMemoryAllocation=true,
warmUpCfg=null]], storagePath=null, checkpointFreq=180000, lockWaitTime=10000,
checkpointThreads=4, checkpointWriteOrder=SEQUENTIAL, walHistSize=20,
maxWalArchiveSize=1073741824, walSegments=10, walSegmentSize=67108864,
walPath=db/wal, walArchivePath=db/wal/archive, cdcWalPath=db/wal/cdc,
cdcEnabled=false, metricsEnabled=false, walMode=LOG_ONLY, walTlbSize=131072,
walBuffSize=0, walFlushFreq=2000, walFsyncDelay=1000,
walRecordIterBuffSize=67108864, alwaysWriteFullPages=false,
fileIOFactory=org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory@3bc90baa,
metricsSubIntervalCnt=5, metricsRateTimeInterval=60000,
walAutoArchiveAfterInactivity=-1, walForceArchiveTimeout=-1,
writeThrottlingEnabled=false, walCompactionEnabled=false, walCompactionLevel=1,
checkpointReadLockTimeout=null, walPageCompression=DISABLED,
walPageCompressionLevel=null, dfltWarmUpCfg=null,
encCfg=org.apache.ignite.configuration.EncryptionConfiguration@18ae0ef8,
defragmentationThreadPoolSize=4, minWalArchiveSize=-1], snapshotPath=snapshots,
activeOnStart=true, activeOnStartPropSetFlag=false, autoActivation=true,
autoActivationPropSetFlag=false, clusterStateOnStart=null, sqlConnCfg=null,
cliConnCfg=ClientConnectorConfiguration [host=null, port=10800, portRange=100,
sockSndBufSize=0, sockRcvBufSize=0, tcpNoDelay=true, maxOpenCursorsPerConn=128,
threadPoolSize=12, selectorCnt=6, idleTimeout=0, handshakeTimeout=10000,
jdbcEnabled=true, odbcEnabled=true, thinCliEnabled=true, sslEnabled=false,
useIgniteSslCtxFactory=true, sslClientAuth=false, sslCtxFactory=null,
thinCliCfg=ThinClientConfiguration [maxActiveTxPerConn=100,
maxActiveComputeTasksPerConn=0]], mvccVacuumThreadCnt=2, mvccVacuumFreq=5000,
authEnabled=false, failureHnd=NoOpFailureHandler [super=AbstractFailureHandler
[ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED,
SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], commFailureRslvr=null,
sqlCfg=SqlConfiguration [longQryWarnTimeout=3000, dfltQryTimeout=0,
sqlQryHistSize=1000, validationEnabled=false], asyncContinuationExecutor=null],
igniteInstanceName=query.SqlSystemViewsSelfTestBug, startTime=1625152368473,
rsrcCtx=null, reconnectState=ReconnectState
[firstReconnectFut=GridFutureAdapter [ignoreInterrupts=false, state=INIT,
res=null, hash=1630535764], curReconnectFut=null, reconnectDone=null]]]
{code}
was (Author: ryzhovsv):
now affinity.toString looks like this:
{code:java}
RendezvousAffinityFunction [parts=1024, mask=1023, exclNeighbors=false,
exclNeighborsWarn=false, backupFilter=null, affinityBackupFilter=null,
ignite=IgniteKernal [longJVMPauseDetector=LongJVMPauseDetector
[workerRef=Thread[jvm-pause-detector-worker,5,main], longPausesCnt=0,
longPausesTotalDuration=0, lastWakeUpTime=1625152370017,
longPausesTimestamps=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0], longPausesDurations=[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0]], cfg=IgniteConfiguration
[igniteInstanceName=query.SqlSystemViewsSelfTestBug, pubPoolSize=12,
svcPoolSize=12, callbackPoolSize=12, stripedPoolSize=12, sysPoolSize=12,
mgmtPoolSize=4, dataStreamerPoolSize=12, utilityCachePoolSize=12,
utilityCacheKeepAliveTime=60000, p2pPoolSize=2, qryPoolSize=12,
buildIdxPoolSize=3, igniteHome=/Users/sega/work/ignite,
igniteWorkDir=/Users/sega/work/ignite/work,
mbeanSrv=com.sun.jmx.mbeanserver.JmxMBeanServer@d65d04c,
nodeId=df77e872-47ea-4312-a747-0e67f1dc8a4a, marsh=BinaryMarshaller [],
marshLocJobs=false, daemon=false, p2pEnabled=true, netTimeout=10000,
netCompressionLevel=1, sndRetryDelay=1000, sndRetryCnt=3,
metricsHistSize=10000, metricsUpdateFreq=1000,
metricsExpTime=9223372036854775807, discoSpi=TcpDiscoverySpi [addrRslvr=null,
addressFilter=null, sockTimeout=5000, ackTimeout=5000, marsh=JdkMarshaller
[clsFilter=org.apache.ignite.marshaller.MarshallerUtils$1@2839d45c],
reconCnt=10, reconDelay=2000, maxAckTimeout=600000, soLinger=0,
forceSrvMode=false, clientReconnectDisabled=false, internalLsnr=null,
skipAddrsRandomization=false], segPlc=STOP, segResolveAttempts=2,
waitForSegOnStart=true, allResolversPassReq=true, segChkFreq=10000,
commSpi=TcpCommunicationSpi
[connectGate=org.apache.ignite.spi.communication.tcp.internal.ConnectGateway@a185a5d,
ctxInitLatch=java.util.concurrent.CountDownLatch@1ff5a7f5[Count = 0],
stopping=false,
clientPool=org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool@7f772214,
nioSrvWrapper=org.apache.ignite.spi.communication.tcp.internal.GridNioServerWrapper@38a478c5,
stateProvider=org.apache.ignite.spi.communication.tcp.internal.ClusterStateProvider@1581531b],
evtSpi=MemoryEventStorageSpi [expireAgeMs=9223372036854775807,
expireCnt=10000, filter=null], colSpi=NoopCollisionSpi [],
deploySpi=LocalDeploymentSpi [],
indexingSpi=org.apache.ignite.spi.indexing.noop.NoopIndexingSpi@2ed4dcfc,
addrRslvr=null,
encryptionSpi=org.apache.ignite.spi.encryption.noop.NoopEncryptionSpi@79a079a0,
tracingSpi=org.apache.ignite.spi.tracing.NoopTracingSpi@116e1adc,
clientMode=false, rebalanceThreadPoolSize=3, rebalanceTimeout=10000,
rebalanceBatchesPrefetchCnt=3, rebalanceThrottle=0, rebalanceBatchSize=524288,
txCfg=TransactionConfiguration [txSerEnabled=false,
dfltIsolation=REPEATABLE_READ, dfltConcurrency=PESSIMISTIC, dfltTxTimeout=0,
txTimeoutOnPartitionMapExchange=0, deadlockTimeout=10000,
pessimisticTxLogSize=0, pessimisticTxLogLinger=10000, tmLookupClsName=null,
txManagerFactory=null, useJtaSync=false], cacheSanityCheckEnabled=true,
discoStartupDelay=60000, deployMode=SHARED, p2pMissedCacheSize=100,
locHost=127.0.0.1, timeSrvPortBase=31100, timeSrvPortRange=100,
failureDetectionTimeout=10000, sysWorkerBlockedTimeout=null,
clientFailureDetectionTimeout=10000, metricsLogFreq=0, connectorCfg=null,
odbcCfg=null, warmupClos=null, atomicCfg=AtomicConfiguration
[seqReserveSize=1000, cacheMode=PARTITIONED, backups=1, aff=null,
grpName=null], classLdr=null, sslCtxFactory=null, platformCfg=null,
binaryCfg=null, memCfg=null, pstCfg=null, dsCfg=DataStorageConfiguration
[sysRegionInitSize=41943040, sysRegionMaxSize=104857600, pageSize=4096,
concLvl=0, dfltDataRegConf=DataRegionConfiguration [name=def,
maxSize=268435456, initSize=268435456, swapPath=null,
pageEvictionMode=DISABLED, pageReplacementMode=CLOCK, evictionThreshold=0.9,
emptyPagesPoolSize=100, metricsEnabled=false, metricsSubIntervalCount=5,
metricsRateTimeInterval=60000, persistenceEnabled=true,
checkpointPageBufSize=0, lazyMemoryAllocation=true, warmUpCfg=null],
dataRegions=DataRegionConfiguration[] [DataRegionConfiguration [name=dr1,
maxSize=268435456, initSize=268435456, swapPath=null,
pageEvictionMode=DISABLED, pageReplacementMode=CLOCK, evictionThreshold=0.9,
emptyPagesPoolSize=100, metricsEnabled=false, metricsSubIntervalCount=5,
metricsRateTimeInterval=60000, persistenceEnabled=false,
checkpointPageBufSize=0, lazyMemoryAllocation=true, warmUpCfg=null],
DataRegionConfiguration [name=dr2, maxSize=268435456, initSize=268435456,
swapPath=null, pageEvictionMode=DISABLED, pageReplacementMode=CLOCK,
evictionThreshold=0.9, emptyPagesPoolSize=100, metricsEnabled=false,
metricsSubIntervalCount=5, metricsRateTimeInterval=60000,
persistenceEnabled=false, checkpointPageBufSize=0, lazyMemoryAllocation=true,
warmUpCfg=null], DataRegionConfiguration [name=dr3, maxSize=268435456,
initSize=268435456, swapPath=null, pageEvictionMode=DISABLED,
pageReplacementMode=CLOCK, evictionThreshold=0.9, emptyPagesPoolSize=100,
metricsEnabled=false, metricsSubIntervalCount=5, metricsRateTimeInterval=60000,
persistenceEnabled=false, checkpointPageBufSize=0, lazyMemoryAllocation=true,
warmUpCfg=null]], storagePath=null, checkpointFreq=180000, lockWaitTime=10000,
checkpointThreads=4, checkpointWriteOrder=SEQUENTIAL, walHistSize=20,
maxWalArchiveSize=1073741824, walSegments=10, walSegmentSize=67108864,
walPath=db/wal, walArchivePath=db/wal/archive, cdcWalPath=db/wal/cdc,
cdcEnabled=false, metricsEnabled=false, walMode=LOG_ONLY, walTlbSize=131072,
walBuffSize=0, walFlushFreq=2000, walFsyncDelay=1000,
walRecordIterBuffSize=67108864, alwaysWriteFullPages=false,
fileIOFactory=org.apache.ignite.internal.processors.cache.persistence.file.AsyncFileIOFactory@3bc90baa,
metricsSubIntervalCnt=5, metricsRateTimeInterval=60000,
walAutoArchiveAfterInactivity=-1, walForceArchiveTimeout=-1,
writeThrottlingEnabled=false, walCompactionEnabled=false, walCompactionLevel=1,
checkpointReadLockTimeout=null, walPageCompression=DISABLED,
walPageCompressionLevel=null, dfltWarmUpCfg=null,
encCfg=org.apache.ignite.configuration.EncryptionConfiguration@18ae0ef8,
defragmentationThreadPoolSize=4, minWalArchiveSize=-1], snapshotPath=snapshots,
activeOnStart=true, activeOnStartPropSetFlag=false, autoActivation=true,
autoActivationPropSetFlag=false, clusterStateOnStart=null, sqlConnCfg=null,
cliConnCfg=ClientConnectorConfiguration [host=null, port=10800, portRange=100,
sockSndBufSize=0, sockRcvBufSize=0, tcpNoDelay=true, maxOpenCursorsPerConn=128,
threadPoolSize=12, selectorCnt=6, idleTimeout=0, handshakeTimeout=10000,
jdbcEnabled=true, odbcEnabled=true, thinCliEnabled=true, sslEnabled=false,
useIgniteSslCtxFactory=true, sslClientAuth=false, sslCtxFactory=null,
thinCliCfg=ThinClientConfiguration [maxActiveTxPerConn=100,
maxActiveComputeTasksPerConn=0]], mvccVacuumThreadCnt=2, mvccVacuumFreq=5000,
authEnabled=false, failureHnd=NoOpFailureHandler [super=AbstractFailureHandler
[ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED,
SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], commFailureRslvr=null,
sqlCfg=SqlConfiguration [longQryWarnTimeout=3000, dfltQryTimeout=0,
sqlQryHistSize=1000, validationEnabled=false], asyncContinuationExecutor=null],
igniteInstanceName=query.SqlSystemViewsSelfTestBug, startTime=1625152368473,
rsrcCtx=null, reconnectState=ReconnectState
[firstReconnectFut=GridFutureAdapter [ignoreInterrupts=false, state=INIT,
res=null, hash=1630535764], curReconnectFut=null, reconnectDone=null]]]
{code}
> Fix flaky test: SqlSystemViewsSelfTest.testCachesViews
> ------------------------------------------------------
>
> Key: IGNITE-15042
> URL: https://issues.apache.org/jira/browse/IGNITE-15042
> Project: Ignite
> Issue Type: Test
> Reporter: Sergei Ryzhov
> Assignee: Sergei Ryzhov
> Priority: Minor
> Attachments: SqlSystemViewsSelfTestBug.java
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Fix flaky test: SqlSystemViewsSelfTest.testCachesViews
> {code:java}
> java.lang.AssertionError: expected:<5> but was:<4>
> at org.junit.Assert.fail(Assert.java:88)
> at org.junit.Assert.failNotEquals(Assert.java:834)
> at org.junit.Assert.assertEquals(Assert.java:118)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at
> org.apache.ignite.testframework.junits.JUnitAssertAware.assertEquals(JUnitAssertAware.java:59)
> at
> org.apache.ignite.internal.processors.query.SqlSystemViewsSelfTest.testCachesViews(SqlSystemViewsSelfTest.java:1565)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$7.run(GridAbstractTest.java:2432)
> at java.base/java.lang.Thread.run(Thread.java:834)
> [
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)