Hi Mayur,

thanks for letting us know! While the scenario leading to this error 
messages seems to be quite an edge-case, the handling of it inside Graylog 
wasn't 100% correct.

I've created a bug report (and fix) for this issue 
at https://github.com/Graylog2/graylog2-server/pull/2833 and it will be 
solved in Graylog 2.2.0.

Cheers,
Jochen

On Wednesday, 14 September 2016 22:25:54 UTC+2, Mayur Mangalampalli wrote:
>
> Hi,
>
> I am seeing the following exception in the graylog servers periodically. 
>
> 2016-09-14 20:20:56,618 ERROR: org.graylog2.periodical.IndexRotationThread 
> - Couldn't point deflector to a new index
> java.lang.NullPointerException
> at org.graylog2.indexer.indices.Indices.numberOfMessages(Indices.java:179) 
> ~[graylog.jar:?]
> at 
> org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategy.shouldRotate(MessageCountRotationStrategy.java:67)
>  
> ~[graylog.jar:?]
> at 
> org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategy.shouldRotate(MessageCountRotationStrategy.java:33)
>  
> ~[graylog.jar:?]
> at 
> org.graylog2.indexer.rotation.strategies.AbstractRotationStrategy.rotate(AbstractRotationStrategy.java:55)
>  
> ~[graylog.jar:?]
> at 
> org.graylog2.periodical.IndexRotationThread.checkForRotation(IndexRotationThread.java:117)
>  
> ~[graylog.jar:?]
> at 
> org.graylog2.periodical.IndexRotationThread.doRun(IndexRotationThread.java:77)
>  
> [graylog.jar:?]
> at org.graylog2.plugin.periodical.Periodical.run(Periodical.java:77) 
> [graylog.jar:?]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
> [?:1.8.0_51]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
> [?:1.8.0_51]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>  
> [?:1.8.0_51]
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>  
> [?:1.8.0_51]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> [?:1.8.0_51]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> [?:1.8.0_51]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
>
> I am using graylog version 2.0.3. Can someone tell me what would cause 
> this issue and impact of the issue. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/0ae03c87-7ccf-4db9-8b07-0d95a6a1d1b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to