com.groupbyinc.flux.gateway.GatewayMetaState.class Maven / Gradle / Ivy
???? 4? ,com/groupbyinc/flux/gateway/GatewayMetaState 6com/groupbyinc/flux/common/component/AbstractComponent /com/groupbyinc/flux/cluster/ClusterStateApplier GatewayMetaState.java ?com/groupbyinc/flux/gateway/GatewayMetaState$IndexMetaWriteInfo IndexMetaWriteInfo 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData
Builder java/util/Map$Entry
java/util/Map Entry 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State 2com/groupbyinc/flux/cluster/metadata/IndexMetaData State 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom Custom %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup nodeEnv )Lcom/groupbyinc/flux/env/NodeEnvironment; metaStateService .Lcom/groupbyinc/flux/gateway/MetaStateService; previousMetaData /Lcom/groupbyinc/flux/cluster/metadata/MetaData; %Lcom/groupbyinc/flux/common/Nullable; previouslyWrittenIndices Ljava/util/Set; 2Ljava/util/Set; 8(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/gateway/MetaStateService;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)V java/lang/Exception . *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V , 1
2 java/util/Collections 4 emptySet ()Ljava/util/Set; 6 7
5 8 ) * : " # < $ % > >com/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState @ init p(Lcom/groupbyinc/flux/gateway/GatewayMetaState;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState; B C
A D .com/groupbyinc/flux/cluster/node/DiscoveryNode F
isDataNode 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z H I
G J ensureNoPre019ShardState ,(Lcom/groupbyinc/flux/env/NodeEnvironment;)V L M
N ,com/groupbyinc/flux/common/settings/Settings P 'com/groupbyinc/flux/env/NodeEnvironment R ,com/groupbyinc/flux/gateway/MetaStateService T @com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService V ,com/groupbyinc/flux/plugins/MetaDataUpgrader X isMasterNode Z I
G [ ensureAtomicMoveSupported ()V ] ^
S _ ensureNoPre019State a ^
b 3com/groupbyinc/flux/common/util/IndexFolderUpgrader d upgradeIndicesIfNeeded Z(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/NodeEnvironment;)V f g
e h
loadFullState 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; j k
U l upgradeMetaData ?(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;)Lcom/groupbyinc/flux/cluster/metadata/MetaData; n o
p isGlobalStateEquals a(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Z r s
t upgrade v writeGlobalState D(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)V x y
U z iterator ()Ljava/util/Iterator; | }
~ java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? hasIndexMetaData 7(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Z ? ?
?
writeIndex I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V ? ?
U ? java/lang/System ? nanoTime ()J ? ?
? ? logger !Lorg/apache/logging/log4j/Logger; ? ? ? took {} to load state ? )com/groupbyinc/flux/common/unit/TimeValue ?
nsecToMSec (J)J ? ?
? ? timeValueMillis .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? org/apache/logging/log4j/Logger ? debug '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? &failed to read local state, exiting... ? error *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? ? ?
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; metaData upgradedMetaData startNS J e Ljava/lang/Exception; this .Lcom/groupbyinc/flux/gateway/GatewayMetaState; settings .Lcom/groupbyinc/flux/common/settings/Settings; nodesListGatewayMetaState @Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState; metaDataIndexUpgradeService BLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService; metaDataUpgrader .Lcom/groupbyinc/flux/plugins/MetaDataUpgrader;
loadMetaState java/io/IOException ? applyClusterState 4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V /com/groupbyinc/flux/cluster/ClusterChangedEvent ? state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? (com/groupbyinc/flux/cluster/ClusterState ? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
? ? /com/groupbyinc/flux/cluster/block/ClusterBlocks ? disableStatePersistence ? ?
? ? &