当前位置: 首页 > 知识库问答 >
问题:

IgniteException:未能找到原子long

司徒耀
2023-03-14

我运行的Ignite V2.1有1个服务器和2个客户端。客户机运行在Tomcat服务器上,并使用IgniteSpringBean。

两个客户端使用相同的IGNiteAtomicLong。当一个客户端从网格中移除时,当另一个客户端试图使用AtomicLong时,它会引发以下异常:

class org.apache.ignite.IgniteException: Failed to find atomic long: MY_ATOMIC_LONG
at org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.getAndIncrement(GridCacheAtomicLongImpl.java:153)
java.lang.IllegalStateException: Atomic long was removed from cache: MY_ATOMIC_LONG
at org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.removedError(GridCacheAtomicLongImpl.java:328)
at org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.checkRemoved(GridCacheAtomicLongImpl.java:304)
at org.apache.ignite.internal.processors.datastructures.GridCacheAtomicLongImpl.getAndIncrement(GridCacheAtomicLongImpl.java:143)
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
   http://www.springframework.org/schema/beans
   http://www.springframework.org/schema/beans/spring-beans.xsd">
    <!--
        Alter configuration below as needed.
    -->
    <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
        <property name="peerClassLoadingEnabled" value="true"/>

        <property name="atomicConfiguration">
          <bean class="org.apache.ignite.configuration.AtomicConfiguration">
            <property name="backups" value="1"/>
          </bean>
        </property>

    </bean>     
visor> config
Select node from:
+===================================================================================+
| # |     Node ID8(@), IP      | Node Type | Up Time  | CPUs | CPU Load | Free Heap |
+===================================================================================+
| 0 | D67C1CCE(@n0), 10.0.2.15 | Server    | 01:52:48 | 1    | 1.00 %   | 94.00 %   |
| 1 | E9CCF354(@n1), 10.0.2.15 | Client    | 00:27:59 | 1    | 0.67 %   | 71.00 %   |
+-----------------------------------------------------------------------------------+

Choose node number ('c' to cancel) [0]: 1
Common Parameters:
+---------------------------------------------------------------------------+
| Grid name                        | <default>                              |
| Ignite home                      | <n/a>                                  |
| Localhost                        | <n/a>                                  |
| Consistent ID                    | <n/a>                                  |
| Marshaller                       | o.a.i.i.binary.BinaryMarshaller        |
| Deployment mode                  | SHARED                                 |
| ClientMode                       | on                                     |
| Daemon                           | off                                    |
| Remote JMX enabled               | on                                     |
| Node restart enabled             | off                                    |
| Network timeout                  | 5000ms                                 |
| Grid logger                      | o.a.i.i.GridLoggerProxy                |
| Discovery startup delay          | 60000ms                                |
| MBean server                     | com.sun.jmx.mbeanserver.JmxMBeanServer |
| ASCII logo disabled              | off                                    |
| Discovery order not required     | off                                    |
| Shutdown hook disabled           | off                                    |
| Program name                     | <n/a>                                  |
| Quiet mode                       | on                                     |
| Success filename                 | <n/a>                                  |
| Update notification enabled      | on                                     |
| Include properties               | <n/a>                                  |
| Atomic Cache Mode                | PARTITIONED                            |
| Atomic Sequence Reservation Size | 1000                                   |
| Atomic Number Of Backup Nodes    | 0                                      |
| Transaction Concurrency          | OPTIMISTIC                             |
| Transaction Isolation            | SERIALIZABLE                           |
| Transaction Timeout              | 0ms                                    |
| Transaction Log Cleanup Delay    | 10000ms                                |
| Transaction Log Size             | 0                                      |
| Transaction Manager Factory      |                                        |
| Transaction Use JTA              | off                                    |
+---------------------------------------------------------------------------+

Peer-to-Peer:
+------------------------------------+
| Peer class loading enabled   | on  |
| Missed resources cache size  | 100 |
| Peer-to-Peer loaded packages | []  |
+------------------------------------+

+---------------+

Executor services:
+------------------------------------+
| Public thread pool size        | 8 |
| System thread pool size        | 8 |
| Management thread pool size    | 4 |
| IGFS thread pool size          | 1 |
| Peer-to-Peer thread pool size  | 2 |
| Rebalance Thread Pool size     | 1 |
| REST thread pool size          | 8 |
| SQL processor thread pool size | 8 |
+------------------------------------+

Segmentation:
+----------------------------------------+
| Segmentation policy            | STOP  |
| Segmentation resolvers         | <n/a> |
| Segmentation check frequency   | 10000 |
| Wait for segmentation on start | on    |
| All resolvers pass required    | on    |
+----------------------------------------+

Cache 'ignite-sys-cache':
+========================================================================================================+
|                   Name                    |                           Value                            |
+========================================================================================================+
| Group                                     |                                                            |
| Dynamic Deployment ID                     | e8b0e511f51-d33f45a3-5f16-4ff9-98e7-66b9d5086cbc           |
| Mode                                      | REPLICATED                                                 |
| Atomicity Mode                            | TRANSACTIONAL                                              |
| Statistic Enabled                         | off                                                        |
| Management Enabled                        | off                                                        |
| Time To Live Eager Flag                   | true                                                       |
| Write Synchronization Mode                | FULL_SYNC                                                  |
| Invalidate                                | off                                                        |
| Affinity Function                         | o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction |
| Affinity Backups                          | 2147483647                                                 |
| Affinity Partitions                       | 100                                                        |
| Affinity Exclude Neighbors                | false                                                      |
| Affinity Mapper                           | o.a.i.i.processors.cache.GridCacheDefaultAffinityKeyMapper |
| Rebalance Mode                            | SYNC                                                       |
| Rebalance Batch Size                      | 524288                                                     |
| Rebalance Timeout                         | 10000                                                      |
| Rebalance Delay                           | 0                                                          |
| Time Between Rebalance Messages           | 0                                                          |
| Eviction Policy Enabled                   | off                                                        |
| Eviction Policy                           | <n/a>                                                      |
| Eviction Policy Max Size                  | <n/a>                                                      |
| Eviction Filter                           | <n/a>                                                      |
| Near Cache Enabled                        | off                                                        |
| Near Start Size                           | 0                                                          |
| Near Eviction Policy                      | <n/a>                                                      |
| Near Eviction Policy Max Size             | <n/a>                                                      |
| Default Lock Timeout                      | 0                                                          |
| Metadata type count                       | 0                                                          |
| Cache Interceptor                         | <n/a>                                                      |
| Store Enabled                             | off                                                        |
| Store Class                               | <n/a>                                                      |
| Store Factory Class                       |                                                            |
| Store Keep Binary                         | false                                                      |
| Store Read Through                        | off                                                        |
| Store Write Through                       | off                                                        |
| Write-Behind Enabled                      | off                                                        |
| Write-Behind Flush Size                   | 10240                                                      |
| Write-Behind Frequency                    | 5000                                                       |
| Write-Behind Flush Threads Count          | 1                                                          |
| Write-Behind Batch Size                   | 512                                                        |
| Concurrent Asynchronous Operations Number | 500                                                        |
| Loader Factory Class Name                 | <n/a>                                                      |
| Writer Factory Class Name                 | <n/a>                                                      |
| Expiry Policy Factory Class Name          | javax.cache.configuration.FactoryBuilder$SingletonFactory  |
| Query Execution Time Threshold            | 3000                                                       |
| Query Schema Name                         |                                                            |
| Query Escaped Names                       | off                                                        |
| Query SQL functions                       | <n/a>                                                      |
| Query Indexed Types                       | <n/a>                                                      |
+--------------------------------------------------------------------------------------------------------+


Cache 'ignite-sys-atomic-cache@default-ds-group':
+==========================================================================================================+
|                   Name                    |                            Value                             |
+==========================================================================================================+
| Group                                     | default-ds-group                                             |
| Dynamic Deployment ID                     | a2e3f511f51-3dcaee4b-3f06-437d-99ae-2bd541f06ec8             |
| Mode                                      | PARTITIONED                                                  |
| Atomicity Mode                            | TRANSACTIONAL                                                |
| Statistic Enabled                         | off                                                          |
| Management Enabled                        | off                                                          |
| Time To Live Eager Flag                   | true                                                         |
| Write Synchronization Mode                | FULL_SYNC                                                    |
| Invalidate                                | off                                                          |
| Affinity Function                         | o.a.i.cache.affinity.rendezvous.RendezvousAffinityFunction   |
| Affinity Backups                          | 0                                                            |
| Affinity Partitions                       | 1024                                                         |
| Affinity Exclude Neighbors                | false                                                        |
| Affinity Mapper                           | o.a.i.i.processors.cache.CacheDefaultBinaryAffinityKeyMapper |
| Rebalance Mode                            | SYNC                                                         |
| Rebalance Batch Size                      | 524288                                                       |
| Rebalance Timeout                         | 10000                                                        |
| Rebalance Delay                           | 0                                                            |
| Time Between Rebalance Messages           | 0                                                            |
| Eviction Policy Enabled                   | off                                                          |
| Eviction Policy                           | <n/a>                                                        |
| Eviction Policy Max Size                  | <n/a>                                                        |
| Eviction Filter                           | <n/a>                                                        |
| Near Cache Enabled                        | off                                                          |
| Near Start Size                           | 0                                                            |
| Near Eviction Policy                      | <n/a>                                                        |
| Near Eviction Policy Max Size             | <n/a>                                                        |
| Default Lock Timeout                      | 0                                                            |
| Metadata type count                       | 0                                                            |
| Cache Interceptor                         | <n/a>                                                        |
| Store Enabled                             | off                                                          |
| Store Class                               | <n/a>                                                        |
| Store Factory Class                       |                                                              |
| Store Keep Binary                         | false                                                        |
| Store Read Through                        | off                                                          |
| Store Write Through                       | off                                                          |
| Write-Behind Enabled                      | off                                                          |
| Write-Behind Flush Size                   | 10240                                                        |
| Write-Behind Frequency                    | 5000                                                         |
| Write-Behind Flush Threads Count          | 1                                                            |
| Write-Behind Batch Size                   | 512                                                          |
| Concurrent Asynchronous Operations Number | 500                                                          |
| Loader Factory Class Name                 | <n/a>                                                        |
| Writer Factory Class Name                 | <n/a>                                                        |
| Expiry Policy Factory Class Name          | javax.cache.configuration.FactoryBuilder$SingletonFactory    |
| Query Execution Time Threshold            | 3000                                                         |
| Query Schema Name                         |                                                              |
| Query Escaped Names                       | off                                                          |
| Query SQL functions                       | <n/a>                                                        |
| Query Indexed Types                       | <n/a>                                                        |
+----------------------------------------------------------------------------------------------------------+

visor> 

共有1个答案

魏彦
2023-03-14

似乎,您在客户端节点上调用igniteAtomicLong#Close方法。在这种情况下,实例将被关闭,并且在集群中的其他节点上不可用。

 类似资料:
  • 我有NDK C代码,它会产生SIGSEGV错误。我找不到它。自定义信号处理返回空堆栈跟踪。 如果我在Android Studio调试器中捕捉到错误,我会得到以下跟踪: 线程93-RxNewThreadSche 没有一个代码是“我的”。只有“熟悉”是第一行,但我不知道在哪里可以找到它。有什么想法吗?

  • 我创建了一个应用程序,创建gpx文件。除了分享,一切都很好。因此,我创建了一个文件提供程序。你可以在下面看到它的配置。提供商在运行Android8.0.0的Android设备上工作正常,但在朋友华为(6.0)上不工作 清单中的提供者: 文件路径。xml: 代码中的用法: 我希望有人能帮我找到导致应用程序在某些设备上崩溃的错误...

  • 我正在尝试使用已经存在的android项目运行我的gradle文件。我在这个应用程序中遇到的唯一错误是。下面是我的gradle文件。是否需要更改才能使其正常工作? 如果您需要更多信息,请告诉我。提前感谢您!

  • d>f=spark\....readstream\....format(“Kafka”)\... .选项(“kafka.bootstrap.servers”,“localhost:9092”)\... .选项(“subscribe”,“data_wm”)\....load()跟踪(最近的调用):文件“,第5行,在文件”/usr/local/spark/python/pyspark/sql/stre

  • 问题内容: 我有下面的react类,可通过浏览器获取地理位置。 我正在绘制传单地图。我想将地理位置作为setView的输入,以使地图“缩放”到客户端浏览器位置的区域。 这是react类: 在主文件中调用该文件,其中HTML呈现为。 加载页面时出现错误。环顾四周,通常是因为地图试图在提供值之前在div中显示(在这种情况下为(gelocation,3))。但是,在从下面的渲染函数返回之前,它不应该显示

  • 我对Android Studio 0.2.3有问题。 当我运行我的项目时,构建停止并显示一条消息,上面写着: Gradle:任务“:AppName:CompiledBugAIDL”的执行失败 虽然我已经安装了Android 4.3(API 18)的SDK平台,并尝试重新安装所有SDK。我还在系统变量中添加了变量。 这个错误的根源似乎是什么?