C# Custom Affinity Functions

classic Classic list List threaded Threaded
2 messages Options
JoshN JoshN
Reply | Threaded
Open this post in threaded view
|

C# Custom Affinity Functions

Hi,

We are using ignite 2.6 C#. If we define a custom affinity function (written
in c#) when configuring the cache (using a IgniteConfiguration object not
spring config) the first call to Ignition.Start is successful. If we
activate the grid, wait for it to become active then shut the application.
When we try and start Ignite again calls to Ignition.Start result in:

....
....
....
INFO: Successfully bound to TCP port [port=48500,
localHost=127.0.0.1/127.0.0.1,
locNodeId=054c1c83-b316-47df-9b04-c85bd3db31ea]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Successfully locked persistence storage folder
[C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Consistent ID used for local node is
[08c8ec2a-dc07-460a-9114-1fd7c23ec76f] according to persistence data storage
folders
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved directory for serialized binary metadata:
C:\Users\jn\AppData\Local\Temp\test\test\work\binary_meta\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved page store work directory:
C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved write ahead log work directory:
C:\Users\jn\AppData\Local\Temp\test\test\WalStore\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved write ahead log archive directory:
C:\Users\jn\AppData\Local\Temp\test\Mutable\WalArchive\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Started write-ahead log manager [mode=LOG_ONLY]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Read checkpoint status
[startMarker=C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f\cp\1542227061117-a884e99a-f052-440a-8bef-3e1038e5e829-START.bin,
endMarker=C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f\cp\1542227061117-a884e99a-f052-440a-8bef-3e1038e5e829-END.bin]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Started page memory [memoryAllocated=100.0 MiB, pages=6344,
tableSize=498.1 KiB, checkpointBuffer=100.0 MiB]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Checking memory state [lastValidPos=FileWALPointer [idx=0,
fileOff=167632, len=53], lastMarked=FileWALPointer [idx=0, fileOff=167632,
len=53], lastCheckpointId=a884e99a-f052-440a-8bef-3e1038e5e829]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Found last checkpoint marker
[cpId=a884e99a-f052-440a-8bef-3e1038e5e829, pos=FileWALPointer [idx=0,
fileOff=167632, len=53]]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Applying lost cache updates since last checkpoint record
[lastMarked=FileWALPointer [idx=0, fileOff=167632, len=53],
lastCheckpointId=a884e99a-f052-440a-8bef-3e1038e5e829]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Finished applying WAL changes [updatesApplied=0, time=53ms]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Restoring history for BaselineTopology[id=0]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Exception during start processors, node will be stopped and close
connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:649)
        at
org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:43)
        at
org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:75)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
deserialize object with given class loader:
sun.misc.Launcher$AppClassLoader@18b4aac2
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:147)
        at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.unmarshal(AbstractNodeNameAwareMarshaller.java:94)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheData(FilePageStoreManager.java:672)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheConfigurations(FilePageStoreManager.java:632)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:812)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: Ignite instance name thread
local must be set or this method should be accessed under
org.apache.ignite.thread.IgniteThread
        at
org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1404)
        at
org.apache.ignite.internal.binary.GridBinaryMarshaller.threadLocalContext(GridBinaryMarshaller.java:395)
        at
org.apache.ignite.internal.binary.BinaryObjectImpl.readExternal(BinaryObjectImpl.java:695)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityFunction.readExternal(PlatformAffinityFunction.java:257)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:139)
        ... 13 more

Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:649)
        at
org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:43)
        at
org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:75)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
deserialize object with given class loader:
sun.misc.Launcher$AppClassLoader@18b4aac2
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:147)
        at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.unmarshal(AbstractNodeNameAwareMarshaller.java:94)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheData(FilePageStoreManager.java:672)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheConfigurations(FilePageStoreManager.java:632)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:812)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: Ignite instance name thread
local must be set or this method should be accessed under
org.apache.ignite.thread.IgniteThread
        at
org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1404)
        at
org.apache.ignite.internal.binary.GridBinaryMarshaller.threadLocalContext(GridBinaryMarshaller.java:395)
        at
org.apache.ignite.internal.binary.BinaryObjectImpl.readExternal(BinaryObjectImpl.java:695)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityFunction.readExternal(PlatformAffinityFunction.java:257)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:139)
        ... 13 more

Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger warning
WARNING: Attempt to stop starting grid. This operation cannot be guaranteed
to be successful.
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO:

>>> +---------------------------------------------------------------------------------+
>>> Ignite ver. 2.6.0#20180710-sha1:669feacc5d3a4e60efcdd300dc8de99780f38eed
>>> stopped OK
>>> +---------------------------------------------------------------------------------+
>>> Ignite instance name: test
>>> Grid uptime: 00:00:02.531

....
....
...

I can reproduce this issue in both Windows 10 and Linux.

Any help/advice would be appreciated.

Josh




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ptupitsyn ptupitsyn
Reply | Threaded
Open this post in threaded view
|

Re: C# Custom Affinity Functions

Hi,

It is a bug, I have filed a ticket [1].
Unfortunately, no workarounds so far.
Thanks for the report.


On Thu, Nov 15, 2018 at 12:38 AM JoshN <[hidden email]> wrote:
Hi,

We are using ignite 2.6 C#. If we define a custom affinity function (written
in c#) when configuring the cache (using a IgniteConfiguration object not
spring config) the first call to Ignition.Start is successful. If we
activate the grid, wait for it to become active then shut the application.
When we try and start Ignite again calls to Ignition.Start result in:

....
....
....
INFO: Successfully bound to TCP port [port=48500,
localHost=127.0.0.1/127.0.0.1,
locNodeId=054c1c83-b316-47df-9b04-c85bd3db31ea]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Successfully locked persistence storage folder
[C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Consistent ID used for local node is
[08c8ec2a-dc07-460a-9114-1fd7c23ec76f] according to persistence data storage
folders
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved directory for serialized binary metadata:
C:\Users\jn\AppData\Local\Temp\test\test\work\binary_meta\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved page store work directory:
C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved write ahead log work directory:
C:\Users\jn\AppData\Local\Temp\test\test\WalStore\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Resolved write ahead log archive directory:
C:\Users\jn\AppData\Local\Temp\test\Mutable\WalArchive\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Started write-ahead log manager [mode=LOG_ONLY]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Read checkpoint status
[startMarker=C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f\cp\1542227061117-a884e99a-f052-440a-8bef-3e1038e5e829-START.bin,
endMarker=C:\Users\jn\AppData\Local\Temp\test\Mutable\Persistence\node00-08c8ec2a-dc07-460a-9114-1fd7c23ec76f\cp\1542227061117-a884e99a-f052-440a-8bef-3e1038e5e829-END.bin]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Started page memory [memoryAllocated=100.0 MiB, pages=6344,
tableSize=498.1 KiB, checkpointBuffer=100.0 MiB]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Checking memory state [lastValidPos=FileWALPointer [idx=0,
fileOff=167632, len=53], lastMarked=FileWALPointer [idx=0, fileOff=167632,
len=53], lastCheckpointId=a884e99a-f052-440a-8bef-3e1038e5e829]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Found last checkpoint marker
[cpId=a884e99a-f052-440a-8bef-3e1038e5e829, pos=FileWALPointer [idx=0,
fileOff=167632, len=53]]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Applying lost cache updates since last checkpoint record
[lastMarked=FileWALPointer [idx=0, fileOff=167632, len=53],
lastCheckpointId=a884e99a-f052-440a-8bef-3e1038e5e829]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Finished applying WAL changes [updatesApplied=0, time=53ms]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO: Restoring history for BaselineTopology[id=0]
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Exception during start processors, node will be stopped and close
connections
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:649)
        at
org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:43)
        at
org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:75)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
deserialize object with given class loader:
sun.misc.Launcher$AppClassLoader@18b4aac2
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:147)
        at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.unmarshal(AbstractNodeNameAwareMarshaller.java:94)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheData(FilePageStoreManager.java:672)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheConfigurations(FilePageStoreManager.java:632)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:812)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: Ignite instance name thread
local must be set or this method should be accessed under
org.apache.ignite.thread.IgniteThread
        at
org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1404)
        at
org.apache.ignite.internal.binary.GridBinaryMarshaller.threadLocalContext(GridBinaryMarshaller.java:395)
        at
org.apache.ignite.internal.binary.BinaryObjectImpl.readExternal(BinaryObjectImpl.java:695)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityFunction.readExternal(PlatformAffinityFunction.java:257)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:139)
        ... 13 more

Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger error
SEVERE: Got exception while starting (will rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start processor:
GridProcessorAdapter []
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1742)
        at
org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:980)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2014)
        at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1723)
        at
org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1151)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:649)
        at
org.apache.ignite.internal.processors.platform.PlatformAbstractBootstrap.start(PlatformAbstractBootstrap.java:43)
        at
org.apache.ignite.internal.processors.platform.PlatformIgnition.start(PlatformIgnition.java:75)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
deserialize object with given class loader:
sun.misc.Launcher$AppClassLoader@18b4aac2
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:147)
        at
org.apache.ignite.marshaller.AbstractNodeNameAwareMarshaller.unmarshal(AbstractNodeNameAwareMarshaller.java:94)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheData(FilePageStoreManager.java:672)
        at
org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager.readCacheConfigurations(FilePageStoreManager.java:632)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.addCacheOnJoinFromConfig(GridCacheProcessor.java:812)
        at
org.apache.ignite.internal.processors.cache.GridCacheProcessor.start(GridCacheProcessor.java:707)
        at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1739)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: Ignite instance name thread
local must be set or this method should be accessed under
org.apache.ignite.thread.IgniteThread
        at
org.apache.ignite.internal.IgnitionEx.localIgnite(IgnitionEx.java:1404)
        at
org.apache.ignite.internal.binary.GridBinaryMarshaller.threadLocalContext(GridBinaryMarshaller.java:395)
        at
org.apache.ignite.internal.binary.BinaryObjectImpl.readExternal(BinaryObjectImpl.java:695)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityFunction.readExternal(PlatformAffinityFunction.java:257)
        at java.io.ObjectInputStream.readExternalData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at
org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal0(JdkMarshaller.java:139)
        ... 13 more

Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger warning
WARNING: Attempt to stop starting grid. This operation cannot be guaranteed
to be successful.
Nov 15, 2018 9:24:51 AM org.apache.ignite.logger.java.JavaLogger info
INFO:

>>> +---------------------------------------------------------------------------------+
>>> Ignite ver. 2.6.0#20180710-sha1:669feacc5d3a4e60efcdd300dc8de99780f38eed
>>> stopped OK
>>> +---------------------------------------------------------------------------------+
>>> Ignite instance name: test
>>> Grid uptime: 00:00:02.531

....
....
...

I can reproduce this issue in both Windows 10 and Linux.

Any help/advice would be appreciated.

Josh




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/