SNR#2969 노드 추가·수정·제거 시 중복 GUID 오류 방지

버전: 4.0.2507.0

노드 설정을 수정하거나, 노드를 제거한 뒤 동일한 노드를 다시 등록할 때 duplicated node GUID 오류가 발생해 정책 동기화가 실패하는 문제가 있었습니다.

이번 릴리스에서는 GUID 중복이 발생하지 않도록 등록 절차를 개선함으로써 정상적으로 노드를 추가·수정·제거할 수 있도록 문제를 해결했습니다.

아래는 오류 발생 시 출력되던 로그입니다.

	[2024-07-26 09:24:29,460] ERROR (PolicyLoaderImpl) - sonar node: policy sync failure - id=1508, module=node, action=create, ...
	java.lang.IllegalStateException: duplicated node GUID [data_26=cbe743b1-3b51-4858-bffb-3cb9a3188577]
	at com.logpresso.federation.NodeRegistryImpl.__M_bidForGuid(NodeRegistryImpl.java:456)
	at com.logpresso.federation.NodeRegistryImpl.bidForGuid(NodeRegistryImpl.java)
	at com.logpresso.federation.NodeRegistryImpl.__M_verifyRemoteNode(NodeRegistryImpl.java:501)
	at com.logpresso.federation.NodeRegistryImpl.verifyRemoteNode(NodeRegistryImpl.java)
	at com.logpresso.federation.NodeRegistryImpl.__M_registerNode(NodeRegistryImpl.java:405)
	at com.logpresso.federation.NodeRegistryImpl.registerNode(NodeRegistryImpl.java)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.__M_createNode(PolicyLoaderImpl.java:342)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.createNode(PolicyLoaderImpl.java)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.__M_sync(PolicyLoaderImpl.java:329)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.sync(PolicyLoaderImpl.java)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.__M_dispatch(PolicyLoaderImpl.java:259)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl.dispatch(PolicyLoaderImpl.java)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl$LoaderThread.__M_runOnce(PolicyLoaderImpl.java:455)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl$LoaderThread.runOnce(PolicyLoaderImpl.java)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl$LoaderThread.__M_run(PolicyLoaderImpl.java:386)
	at com.logpresso.sonar.node.impl.PolicyLoaderImpl$LoaderThread.run(PolicyLoaderImpl.java)