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

[KAFKA-7024] Rocksdb state directory should be created before opening… #6138

Merged
merged 1 commit into from
Jan 18, 2019
Merged

[KAFKA-7024] Rocksdb state directory should be created before opening… #6138

merged 1 commit into from
Jan 18, 2019

Conversation

ConcurrencyPractitioner
Copy link
Contributor

@ConcurrencyPractitioner ConcurrencyPractitioner commented Jan 14, 2019

In RocksDBStore.openDB we call

Files.createDirectories(dir.getParentFile().toPath());
return RocksDB.open(options, dir.getAbsolutePath());

We would also add the absolute file path as well to avoid the extra logging.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@ConcurrencyPractitioner
Copy link
Contributor Author

@guozhangwang Just a simple fix. We could get this in lickedy-split.

@mjsax mjsax added the streams label Jan 16, 2019
Copy link
Member

@mjsax mjsax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@guozhangwang Do we need a test for this? I am happy without a test, too.

@mjsax
Copy link
Member

mjsax commented Jan 16, 2019

Retest this please.

@guozhangwang
Copy link
Contributor

I think this is good enough. LGTM.

@guozhangwang guozhangwang merged commit 78076f9 into apache:trunk Jan 18, 2019
abbccdda pushed a commit to abbccdda/kafka that referenced this pull request Jan 24, 2019
… the DB (apache#6138)

In RocksDBStore.openDB we call

Files.createDirectories(dir.getParentFile().toPath()); 
return RocksDB.open(options, dir.getAbsolutePath());

We would also add the absolute file path as well to avoid the extra logging.

Reviewers: Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
jarekr pushed a commit to confluentinc/kafka that referenced this pull request Apr 18, 2019
* ak/trunk:
  MINOR: fix race condition in KafkaStreamsTest (apache#6185)
  KAFKA-4850: Enable bloomfilters (apache#6012)
  MINOR: ducker-ak: add down -f, avoid using a terminal in ducker test
  KAFKA-5117: Stop resolving externalized configs in Connect REST API
  MINOR: Cleanup handling of mixed transactional/idempotent records (apache#6172)
  KAFKA-7844: Use regular subproject for generator to fix *All targets (apache#6182)
  Fix Documentation for cleanup.policy is out of date (apache#6181)
  MINOR: increase timeouts for KafkaStreamsTest (apache#6178)
  MINOR: Rejoin split ssl principal mapping rules (apache#6099)
  MINOR: Handle case where connector status endpoints returns 404 (apache#6176)
  MINOR: Remove unused imports, exceptions, and values (apache#6117)
  KAFKA-3522: Add internal RecordConverter interface (apache#6150)
  Fix Javadoc of KafkaConsumer (apache#6155)
  KAFKA-6455: Extend CacheFlushListener to forward timestamp (apache#6147)
  MINOR: Log partition info when creating new request batch in controller (apache#6145)
  KAFKA-7652: Part I; Fix SessionStore's findSession(single-key) (apache#6134)
  MINOR: Remove the InvalidTopicException handling in InternalTopicManager (apache#6167)
  [KAFKA-7024] Rocksdb state directory should be created before opening the DB (apache#6138)
  MINOR:: Fix typos (apache#6079)
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
… the DB (apache#6138)

In RocksDBStore.openDB we call

Files.createDirectories(dir.getParentFile().toPath()); 
return RocksDB.open(options, dir.getAbsolutePath());

We would also add the absolute file path as well to avoid the extra logging.

Reviewers: Matthias J. Sax <matthias@confluent.io>, Guozhang Wang <wangguoz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants