-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
empty FBTableStatisticsManager.getTableStatistics() return #747
Comments
A reproducible case would be helpful, including Firebird version and the total number of tables in the database. If you get a |
Found the issue. |
Using multiple Looking at the code, the only way I can think of using multiple instances could result in a Could your application be actively dropping tables? |
No table drop. There are 1221 tables in the database (sys tables not included) |
I wrote a test, and it does reproduce it if I drop a table that has statistics between the first instance and the second instance, but I'm not yet sure what might cause it; I'll dig deeper. |
The problem does not have to do with the table drop.
I guess I need to request available tables immediately when the map is empty, instead of lazily doing it later, and maybe add some extra handling if truncation is reported anyway. |
Fix is part of Jaybird 5.0.2 (and Jaybird 6). If you want, you can check the snapshots on the Sonatype OSS Maven snapshot repository (https://oss.sonatype.org/content/repositories/snapshots) |
@mrotteveel : tested, looks fine, thank you! |
Hi Mark!
getTableStatistics() result is not reliable, it returns empty
TableStatisticsProcessor.process sometimes gets just a single byte array as an input : [2] (isc_info_truncated).
Is this a Jaybird, or a Firebird server issue? Is there a some kind of restriction or prerequisite for getTableStatistics() to work?
Thank you!
The text was updated successfully, but these errors were encountered: