Skip to content
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

Rocksdb secondary instance throws exception "Can not get size for file.sst" after calling tryCatchUpWithPrimary() #13297

Open
fmvin opened this issue Jan 15, 2025 · 0 comments

Comments

@fmvin
Copy link

fmvin commented Jan 15, 2025

Expected behavior
No error happens

Actual behavior
Java exception occurred:
org.rocksdb.RocksDBException: Can not get size for:
z:\rocks_dbg/004662.sst:

Steps to reproduce the behavior
For all the steps default options are used.

  1. Open a primary Rocksdb with all columns in cpp app
  2. Open a secondary Rocksdb in java app, along with the same columns opened and with setMaxOpenFiles(-1)
  3. Periodically (each 6 seconds) catch up the primary in java app using tryCatchUpWithPrimary()---> In this step everything is OK
  4. Close the primary instance and open it again in cpp app.
  5. Use the same secondary instance opened in (2) and call tryCatchUpWithPrimary() in java app
  6. Java app fails ---> got the exception mentioned above.

Notes:
a. Primary instance does not create or delete columns dynamically.
b. Rocksdb primary folder size 90Mb

Setup
Windows 2019 Server
File system: NTFS
msvc compliler v.19.42.34435
Rocksdb 9.8.4 from vcpkg
rocksdbjni-9.8.4.jar

Related issues
May be related to #12821

@fmvin fmvin changed the title Rocksdb secondary instance exception "Can not get size for file.sst" after calling tryCatchUpWithPrimary() Rocksdb secondary instance throws exception "Can not get size for file.sst" after calling tryCatchUpWithPrimary() Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant