Skip to content

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

Open
@fmvin

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions