rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

Add sequence numbers Java tests

Open dnanuti opened this issue 2 years ago • 9 comments

Add Java tests to check sequence numbers allocation with: flush and close, close without flush, and thread interrupts after flush.

Testing

  • Locally ran Java tests:
...
Running: org.rocksdb.SecondaryDBTest
	openAsSecondary OK
	openAsSecondaryColumnFamilies OK
Tests run: 2, Failures: 0, Errors: 0, Ignored: 0, Time elapsed: 0.515 sec

Running: org.rocksdb.SequenceNumberAllocationTest
	testSeqnoCloseWithoutFlush[true] OK
	testSeqnoDataWrittenAfterFlush[true] OK
	testSeqnoFlushAndClose[true] OK
	testSeqnoThreadInterruptAfterFlush[true] OK
	testSeqnoCloseWithoutFlush[false] OK
	testSeqnoDataWrittenAfterFlush[false] OK
	testSeqnoFlushAndClose[false] OK
	testSeqnoThreadInterruptAfterFlush[false] OK
Tests run: 8, Failures: 0, Errors: 0, Ignored: 0, Time elapsed: 2.611 sec

Running: org.rocksdb.SliceTest
	sliceRemovePrefix OK
	slice OK
	sliceToString OK
	sliceClear OK
	sliceStartWith OK
	sliceEquals OK
Tests run: 6, Failures: 0, Errors: 0, Ignored: 0, Time elapsed: 0.003 sec
...

dnanuti avatar Jun 26 '23 12:06 dnanuti

Hi @dnanuti!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

facebook-github-bot avatar Jun 26 '23 12:06 facebook-github-bot

Rebased on main. @adamretter, would you please have a look on this?

dnanuti avatar Aug 15 '23 12:08 dnanuti

@dnanuti Do you still plan to complete this PR?

adamretter avatar Sep 13 '23 12:09 adamretter

@dnanuti Do you still plan to complete this PR?

Yes, sorry, I had to switch the context. I will push the changes by EOW. Is there an .editorconfig that can be shared for the formatting issues? Or a make target that I can run?

dnanuti avatar Sep 13 '23 12:09 dnanuti

Is there an .editorconfig that can be shared for the formatting issues? Or a make target that I can run?

I am afraid not.

adamretter avatar Sep 13 '23 12:09 adamretter

@dnanuti I am afraid you still need to fix the code formatting issues, see the output from CI - https://github.com/facebook/rocksdb/actions/runs/6548421059/job/17802901391?pr=11563

adamretter avatar Nov 06 '23 21:11 adamretter

@dnanuti I am afraid you still need to fix the code formatting issues, see the output from CI - https://github.com/facebook/rocksdb/actions/runs/6548421059/job/17802901391?pr=11563

run make format should handle this @dnanuti

hx235 avatar Jan 11 '24 16:01 hx235

@hx235 @dnanuti I added commits to fix the formatting, and also to add the tests to the CMake build. I think this should be good to land now.

adamretter avatar Jan 23 '24 21:01 adamretter

@adamretter I switched projects and I totally missed your update. I rebased it on main. Thanks a lot for your support! @hx235 I haven't followed up with the discussions, I trust you know best if this should be merged or closed. Thank you both!

dnanuti avatar Mar 09 '24 15:03 dnanuti