[ https://issues.apache.org/jira/browse/IGNITE-12088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933488#comment-16933488 ]
kcheng.mvp commented on IGNITE-12088: ------------------------------------- TeamCity is green https://ci.ignite.apache.org/viewType.html?buildTypeId=IgniteTests24Java8_BuildApacheIgnite&tab=buildTypeBranches > Cache or template name should be validated before attempt to start > ------------------------------------------------------------------ > > Key: IGNITE-12088 > URL: https://issues.apache.org/jira/browse/IGNITE-12088 > Project: Ignite > Issue Type: Bug > Components: cache > Reporter: Pavel Kovalenko > Assignee: kcheng.mvp > Priority: Critical > Labels: usability > Fix For: 2.8 > > > If set too long cache name it can be a cause of impossibility to create work > directory for that cache: > {noformat} > [2019-08-20 > 19:35:42,139][ERROR][exchange-worker-#172%node1%][IgniteTestResources] > Critical system error detected. Will be handled accordingly to configured > handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler > [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, > SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=FailureContext > [type=CRITICAL_ERROR, err=class o.a.i.IgniteCheckedException: Failed to > initialize cache working directory (failed to create, make sure the work > folder has correct permissions): > /home/gridgain/projects/incubator-ignite/work/db/node1/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0]] > class org.apache.ignite.IgniteCheckedException: Failed to initialize cache > working directory (failed to create, make sure the work folder has correct > permissions): > /home/gridgain/projects/incubator-ignite/work/db/node1/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0 > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:769) > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:748) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.persistCacheConfigurations(CachesRegistry.java:289) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.registerAllCachesAndGroups(CachesRegistry.java:264) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.update(CachesRegistry.java:202) > at > org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:850) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:1306) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:846) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3231) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3077) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.nio.file.FileSystemException: > /home/gridgain/projects/incubator-ignite/work/db/node1/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0: File name too long > at > sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) > at java.nio.file.Files.createDirectory(Files.java:674) > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:764) > ... 11 more > [2019-08-20 > 19:35:42,139][ERROR][exchange-worker-#213%node2%][IgniteTestResources] > Critical system error detected. Will be handled accordingly to configured > handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler > [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, > SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=FailureContext > [type=CRITICAL_ERROR, err=class o.a.i.IgniteCheckedException: Failed to > initialize cache working directory (failed to create, make sure the work > folder has correct permissions): > /home/gridgain/projects/incubator-ignite/work/db/node2/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0]] > class org.apache.ignite.IgniteCheckedException: Failed to initialize cache > working directory (failed to create, make sure the work folder has correct > permissions): > /home/gridgain/projects/incubator-ignite/work/db/node2/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0 > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:769) > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:748) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.persistCacheConfigurations(CachesRegistry.java:289) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.registerAllCachesAndGroups(CachesRegistry.java:264) > at > org.apache.ignite.internal.processors.cache.CachesRegistry.update(CachesRegistry.java:202) > at > org.apache.ignite.internal.processors.cache.CacheAffinitySharedManager.onCacheChangeRequest(CacheAffinitySharedManager.java:850) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onCacheChangeRequest(GridDhtPartitionsExchangeFuture.java:1306) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:846) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3231) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3077) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:119) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.nio.file.FileSystemException: > /home/gridgain/projects/incubator-ignite/work/db/node2/cache-CacheConfiguration > [name=ccfg3staticTemplate*, grpName=null, memPlcName=null, > storeConcurrentLoadAllThreshold=5, rebalancePoolSize=1, > rebalanceTimeout=10000, evictPlc=null, evictPlcFactory=null, > onheapCache=false, sqlOnheapCache=false, sqlOnheapCacheMaxSize=0, > evictFilter=null, eagerTtl=true, dfltLockTimeout=0, nearCfg=null, > writeSync=null, storeFactory=null, storeKeepBinary=false, loadPrevVal=false, > aff=null, cacheMode=PARTITIONED, atomicityMode=null, backups=6, > invalidate=false, tmLookupClsName=null, rebalanceMode=ASYNC, > rebalanceOrder=0, rebalanceBatchSize=524288, rebalanceBatchesPrefetchCnt=2, > maxConcurrentAsyncOps=500, sqlIdxMaxInlineSize=-1, writeBehindEnabled=false, > writeBehindFlushSize=10240, writeBehindFlushFreq=5000, > writeBehindFlushThreadCnt=1, writeBehindBatchSize=512, > writeBehindCoalescing=true, maxQryIterCnt=1024, affMapper=null, > rebalanceDelay=0, rebalanceThrottle=0, interceptor=null, > longQryWarnTimeout=3000, qryDetailMetricsSz=0, readFromBackup=true, > nodeFilter=null, sqlSchema=null, sqlEscapeAll=false, cpOnRead=true, > topValidator=null, partLossPlc=IGNORE, qryParallelism=1, evtsDisabled=false, > encryptionEnabled=false, diskPageCompression=null, > diskPageCompressionLevel=null]0: File name too long > at > sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384) > at java.nio.file.Files.createDirectory(Files.java:674) > at > org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.checkAndInitCacheWorkDir(FilePageStoreManager.java:764) > ... 11 more > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)