GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix RocksDB configuration path handling on Windows by hezhangjian · Pull Request #4407 · apache/bookkeeper

Conversation

@hezhangjian

@hezhangjian hezhangjian commented May 30, 2024

Copy link
Copy Markdown
Member

Motivation

This PR addresses the issue where RocksDB configurations fail to correctly resolve paths on Windows systems in the ServerConfiguration class. See windows daily build failed in https://github.com/apache/bookkeeper/actions/runs/9294883674

Note: Currently, windows is limited to some development jobs, there are still problems to be solved

Changes

  • Updated ServerConfiguration.java to utilize java.nio.file.Paths for path normalization and resolution.
  • Refactored the getDefaultRocksDBConf, getEntryLocationRocksdbConf, and getLedgerMetadataRocksdbConf methods to use a new method getFilePath.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hezhangjian
Fix RocksDB configuration path handling on Windows
e67923c
Signed-off-by: ZhangJian He <[email protected]>
@hezhangjian hezhangjian added this to the 4.18.0 milestone May 30, 2024
@hezhangjian
hezhangjian requested review from dlg99, eolivelli, hangc0276, merlimat and nicoloboschi May 30, 2024 11:20
@hezhangjian hezhangjian self-assigned this May 30, 2024
@dlg99

dlg99 commented May 30, 2024

Copy link
Copy Markdown
Contributor

I see

Error:  org.apache.bookkeeper.replication.BookieAutoRecoveryTest.testOpenLedgers -- Time elapsed: 120.0 s <<< ERROR!
org.junit.runners.model.TestTimedOutException: test timed out after 120 seconds

I kicked CI retry but this test was stable IIRC.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hezhangjian

hezhangjian commented May 31, 2024

Copy link
Copy Markdown
Member Author

@dlg99 I saw you open flaky test issues, I will take a look. I think we can approve this first. It solves error like this:

Error: Run 2: TestReadLastConfirmedAndEntry>BookKeeperClusterTestCase.setUp:169->BookKeeperClusterTestCase.setUp:194->BookKeeperClusterTestCase.startBKCluster:286->BookKeeperClusterTestCase.startNewBookie:658->BookKeeperClusterTestCase.startNewBookieAndReturnAddress:665->BookKeeperClusterTestCase.startAndAddBookie:676->BookKeeperClusterTestCase.startBookie:696 » InvalidPath Illegal char <:> at index 2: /D:/a/bookkeeper/bookkeeper/bookkeeper-server/target/test-classes/conf/ledger_metadata_rocksdb.conf

dlg99 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dlg99
dlg99 approved these changes May 31, 2024
View reviewed changes
@dlg99

dlg99 commented May 31, 2024

Copy link
Copy Markdown
Contributor

I first noticed this test failing on this PR and later checked the others. LGTM, not broken by this change

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hezhangjian
hezhangjian merged commit d7b2df4 into apache:master May 31, 2024
@hezhangjian
hezhangjian deleted the fix-widnwos-rocksdb branch May 31, 2024 03:45
@dlg99 dlg99 added the area/bookie label Jun 5, 2024
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
@hezhangjian Anup Ghatage
Fix RocksDB configuration path handling on Windows (apache#4407)
582f271
### Motivation

This PR addresses the issue where RocksDB configurations fail to correctly resolve paths on Windows systems in the `ServerConfiguration` class.

### Changes

- Updated `ServerConfiguration.java` to utilize `java.nio.file.Paths` for path normalization and resolution.
- Refactored the `getDefaultRocksDBConf`, `getEntryLocationRocksdbConf`, and `getLedgerMetadataRocksdbConf` methods to use a new method `getFilePath`.

Signed-off-by: ZhangJian He <[email protected]>
This was referenced Mar 5, 2025
Fix and improve locating RocksDB config files #4560
Merged
Upgrade RocksDB to version 9.2.1 #4422
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dlg99 dlg99 dlg99 approved these changes
@merlimat merlimat Awaiting requested review from merlimat
@hangc0276 hangc0276 Awaiting requested review from hangc0276
@eolivelli eolivelli Awaiting requested review from eolivelli
@nicoloboschi nicoloboschi Awaiting requested review from nicoloboschi

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@hezhangjian hezhangjian

Labels

area/bookie

Projects

None yet

Milestone

4.18.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@hezhangjian @dlg99
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.