-
Notifications
You must be signed in to change notification settings - Fork 871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE due to incorrect condition in java #9169
Comments
Btw, NPE is also possible if monitoring was not started for some reason (exception and etc), but stopMonitoring has been invoked due to the following construction: Lines 291 to 301 in 3d01004
I think it will be safer if |
I'm sorry, but it seems that OPerformanceStatisticManager was not fully tested, because due to mentioned NPE - it's not possible to get OWOWCache$PeriodicFlushTask running - it stops execution after first Exception (btw - why? Critical things, imho, should be retryable) - so if performance monitoring was started - WOW Cache stops immediately flushing. Am I missing something? |
…e not completed and out of dated.
Fixed |
Nice fix;) Thank you! |
Hello,
Please check the following 2 lines of code
orientdb/core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/statistic/OSessionStoragePerformanceStatistic.java
Lines 1197 to 1198 in add35f9
As you can see: you can get easily NPE if walCountersHolder==null (our case).
Full exception:
The text was updated successfully, but these errors were encountered: