SNR#2058 table 쿼리 명령어로 특정 노드에 대해 와일드카드 조회 시 NPE 오류가 발생하며 쿼리가 실패하는 문제 해결
table 명령어로 단일 노드에 대해 와일드카드 조회 시, NPE(NullPointerException) 오류가 발생하며 쿼리가 실패하는 문제가 해결되었습니다. 문제가 발생했던 쿼리의 형태는 다음과 같습니다.
table n2:t*
발생했던 오류 로그는 다음과 같습니다.
[2023-03-06 22:48:14,722] ERROR (LogQueryPlugin) - araqne logdb: cannot create query
java.lang.NullPointerException
at com.logpresso.query.planner.DistributedQueryPlanner.__M_expandToAsteriskRemoteStorageObjectSpec(DistributedQueryPlanner.java:1085)
at com.logpresso.query.planner.DistributedQueryPlanner.expandToAsteriskRemoteStorageObjectSpec(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_expandToRemoteStorageObjectSpec(DistributedQueryPlanner.java:1290)
at com.logpresso.query.planner.DistributedQueryPlanner.expandToRemoteStorageObjectSpec(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_expandToRemoteStorageObjectSpecs(DistributedQueryPlanner.java:1052)
at com.logpresso.query.planner.DistributedQueryPlanner.expandToRemoteStorageObjectSpecs(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_expandStorageObjectSpecs(DistributedQueryPlanner.java:1038)
at com.logpresso.query.planner.DistributedQueryPlanner.expandStorageObjectSpecs(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_classifySources(DistributedQueryPlanner.java:999)
at com.logpresso.query.planner.DistributedQueryPlanner.classifySources(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_planRecursively(DistributedQueryPlanner.java:264)
at com.logpresso.query.planner.DistributedQueryPlanner.planRecursively(DistributedQueryPlanner.java)
at com.logpresso.query.planner.DistributedQueryPlanner.__M_plan(DistributedQueryPlanner.java:244)
at com.logpresso.query.planner.DistributedQueryPlanner.plan(DistributedQueryPlanner.java)
at org.araqne.logdb.query.engine.QueryServiceImpl.__M_createQuery(QueryServiceImpl.java:374)
at org.araqne.logdb.query.engine.QueryServiceImpl.createQuery(QueryServiceImpl.java)
at org.araqne.logdb.msgbus.LogQueryPlugin.__M_createQuery(LogQueryPlugin.java:343)
at org.araqne.logdb.msgbus.LogQueryPlugin.createQuery(LogQueryPlugin.java)
at jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.araqne.msgbus.handler.MsgbusPluginHandler.__M_handleMessage(MsgbusPluginHandler.java:201)
at org.araqne.msgbus.handler.MsgbusPluginHandler.handleMessage(MsgbusPluginHandler.java)
at org.araqne.msgbus.impl.MessageBusImpl$TaskRunner.__M_invokeMessageHandler(MessageBusImpl.java:579)
at org.araqne.msgbus.impl.MessageBusImpl$TaskRunner.invokeMessageHandler(MessageBusImpl.java)
at org.araqne.msgbus.impl.MessageBusImpl$TaskRunner.__M_run(MessageBusImpl.java:569)
at org.araqne.msgbus.impl.MessageBusImpl$TaskRunner.run(MessageBusImpl.java)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)