Skip to contentSkip to conversation

getting more updates in rocksdb

DISCUSSION Willem Jan Withagen 5 participants 10 messages Jul 20, 2016 – Jul 22, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I submitted a small patch to rocksdb for FreeBSD
https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

And if it is not in, would it be possible to get it in the module we fetch for Ceph?

--WjW

#1 lore raw
Quoted 6 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD
https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).
-Greg

#2 lore raw
Quoted 15 lines · Gregory Farnum
Quoted 6 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD
https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

--WjW

#3 lore raw
Quoted 24 lines · Willem Jan Withagen
Quoted 15 lines · Gregory Farnum
Quoted 6 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD
https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from
within your submodule checkout (src/rocksdb) which functions like a
normal git repo itself. You could e.g. 'git pull https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

Josh

#4 lore raw

Hi,

I met the same issue, and I run "git submodule update --init --recursive --remote" to fetch the latest commit from facebook/rocksdb.
In fact, there is one similar PR has been raised, it is
https://github.com/ceph/rocksdb/pull/10, it is in review stage. In fact, the PR is raised to fix the rocksdb compiling error in AArm64, the reason the ceph/rocksdb is out of date.
Sure we should fetch all the delta from facebook/rocksdb to ceph/rocksdb. Thanks.

Br,
Tone

Quoted 54 lines · Josh Durgin
Quoted 31 lines · Willem Jan Withagen
Quoted 20 lines · Gregory Farnum
Quoted 8 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD

https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from within your submodule checkout (src/rocksdb) which functions like a normal git repo itself. You could e.g. 'git pull
https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

Quoted 7 lines

Josh

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
Quoted 12 lines · Tone Zhang

Hi,

I met the same issue, and I run "git submodule update --init --recursive --remote" to fetch the latest commit from facebook/rocksdb.
In fact, there is one similar PR has been raised, it is
https://github.com/ceph/rocksdb/pull/10, it is in review stage. In fact, the PR is raised to fix the rocksdb compiling error in AArm64, the reason the ceph/rocksdb is out of date.
Sure we should fetch all the delta from facebook/rocksdb to ceph/rocksdb. Thanks.

Quoted 57 lines

Br,
Tone

Quoted 53 lines · Josh Durgin
Quoted 31 lines · Willem Jan Withagen
Quoted 20 lines · Gregory Farnum
Quoted 8 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD

https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from within your submodule checkout (src/rocksdb) which functions like a normal git repo itself. You could e.g. 'git pull
https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

'mmmm,

If I look in ceph/rocksdb at github thru the filebrowser, the commit I made is actually in this tree. So I guess I should be getting it. So I guess I'm going to start recloning my sources...

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

Hi,

Could you please share me that after reclone the ceph code you can fetch the latest code of ceph/rocksdb or not? I mean the same as the upstream facebook/rocksdb.
I have tried, the HEAD of ceph/rocksdb is still 5647fa427c4eab87c0caf8bcbb91f5846a4623f9. In my side, the code cloned to local is different from the files saw in github filebrowser. Thanks.

Br,
Tone

Quoted 71 lines · Willem Jan Withagen
Quoted 12 lines · Tone Zhang

Hi,

I met the same issue, and I run "git submodule update --init --recursive --remote" to fetch the latest commit from facebook/rocksdb.
In fact, there is one similar PR has been raised, it is
https://github.com/ceph/rocksdb/pull/10, it is in review stage. In fact, the PR is raised to fix the rocksdb compiling error in AArm64, the reason the ceph/rocksdb is out of date.
Sure we should fetch all the delta from facebook/rocksdb to ceph/rocksdb. Thanks.

Quoted 57 lines

Br,
Tone

Quoted 53 lines · Josh Durgin
Quoted 31 lines · Willem Jan Withagen
Quoted 20 lines · Gregory Farnum
Quoted 8 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD

https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from within your submodule checkout (src/rocksdb) which functions like a normal git repo itself. You could e.g. 'git pull
https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

Quoted 9 lines

'mmmm,

If I look in ceph/rocksdb at github thru the filebrowser, the commit I made is actually in this tree. So I guess I should be getting it. So I guess I'm going to start recloning my sources...

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 8 lines · Tone Zhang

Hi,

Could you please share me that after reclone the ceph code you can fetch the latest code of ceph/rocksdb or not? I mean the same as the upstream facebook/rocksdb.
I have tried, the HEAD of ceph/rocksdb is still 5647fa427c4eab87c0caf8bcbb91f5846a4623f9. In my side, the code cloned to local is different from the files saw in github filebrowser.

Right.

That is exactly my problem as well.
https://github.com/ceph/rocksdb claims 6797e6f
Which is 17 commits behind on the master version

So what I get from the other mails, is to actually get that forward, a commit for the new tree needs to get into ceph/ceph.
Which is what Josh and Greg are writting about.
And there is a lingering PULL from Kefu that is actually doing something like that.

--WjW

Quoted 86 lines

Thanks.

Br,
Tone

Quoted 80 lines · Willem Jan Withagen
Quoted 12 lines · Tone Zhang

Hi,

I met the same issue, and I run "git submodule update --init --recursive --remote" to fetch the latest commit from facebook/rocksdb.
In fact, there is one similar PR has been raised, it is
https://github.com/ceph/rocksdb/pull/10, it is in review stage. In fact, the PR is raised to fix the rocksdb compiling error in AArm64, the reason the ceph/rocksdb is out of date.
Sure we should fetch all the delta from facebook/rocksdb to ceph/rocksdb. Thanks.

Quoted 57 lines

Br,
Tone

Quoted 53 lines · Josh Durgin
Quoted 31 lines · Willem Jan Withagen
Quoted 20 lines · Gregory Farnum
Quoted 8 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD

https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from within your submodule checkout (src/rocksdb) which functions like a normal git repo itself. You could e.g. 'git pull
https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

'mmmm,

If I look in ceph/rocksdb at github thru the filebrowser, the commit I made is actually in this tree. So I guess I should be getting it. So I guess I'm going to start recloning my sources...

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw

Hi,

Thanks a lot!
So synchronise the submodule code is a little pain. We have to synchronise the code manually when we found we have been behind the upstream so much. :)

Br,
Tone

Quoted 16 lines · Willem Jan Withagen
Quoted 8 lines · Tone Zhang

Hi,

Could you please share me that after reclone the ceph code you can fetch the latest code of ceph/rocksdb or not? I mean the same as the upstream facebook/rocksdb.
I have tried, the HEAD of ceph/rocksdb is still 5647fa427c4eab87c0caf8bcbb91f5846a4623f9. In my side, the code cloned to local is different from the files saw in github filebrowser.

Right.

That is exactly my problem as well.
https://github.com/ceph/rocksdb claims 6797e6f
Which is 17 commits behind on the master version

Quoted 96 lines

So what I get from the other mails, is to actually get that forward, a commit for the new tree needs to get into ceph/ceph.
Which is what Josh and Greg are writting about.
And there is a lingering PULL from Kefu that is actually doing something like that.

--WjW

Quoted 86 lines

Thanks.

Br,
Tone

Quoted 80 lines · Willem Jan Withagen
Quoted 12 lines · Tone Zhang

Hi,

I met the same issue, and I run "git submodule update --init --recursive --remote" to fetch the latest commit from facebook/rocksdb.
In fact, there is one similar PR has been raised, it is
https://github.com/ceph/rocksdb/pull/10, it is in review stage. In fact, the PR is raised to fix the rocksdb compiling error in AArm64, the reason the ceph/rocksdb is out of date.
Sure we should fetch all the delta from facebook/rocksdb to ceph/rocksdb. Thanks.

Quoted 57 lines

Br,
Tone

Quoted 53 lines · Josh Durgin
Quoted 31 lines · Willem Jan Withagen
Quoted 20 lines · Gregory Farnum
Quoted 8 lines · Willem Jan Withagen

Hi,

I submitted a small patch to rocksdb for FreeBSD

https://github.com/facebook/rocksdb/commit/b726bf59619d43651838e03cce9f876b3560cbda

Quoted 7 lines

And was hopping that it would be tracked by my Ceph stuff as well. But refetching things, it does not seem to be in the tree ceph cmake fetches.

And I'm not fluent enough in git to actually check if my current checkout with hash: 5647fa427c4eab87c0caf8bcbb91f5846a4623f9 should contain the above commit.

Quoted 7 lines

Use "git log" on both trees and search for the hashes? :)

Anyway, the Ceph submodule does not auto-update (git submodules don't support that AFAIK). You can go into the rocksdb folder and try checking out the latest upstream master, then committing the new hash as a commit in the Ceph git repo (at least, once your commit is merged; not sure if it is yet).

Quoted 7 lines

Although I (sort of) understand what you are saying, I'm not able to reproduce the actual commands to do this. Comparing the logs I understand. First just have to clone rocksdb.

And as far as I know the commit I'm looking for is in the current rocksdb tree. I got commit about 22 days ago, and the current hash seems te be from just a bit before that.

To clarify, to update the rocksdb submodule, you'd need to first update the ceph fork. (cat .gitmodules shows src/rocksdb comes from
https://github.com/ceph/rocksdb).

You can make a PR to ceph/rocksdb with the latest upstream code from within your submodule checkout (src/rocksdb) which functions like a normal git repo itself. You could e.g. 'git pull
https://github.com/facebook/rocksdb' to get the latest code there.

Then once that's merged into ceph/rocksdb, make a PR to ceph (from the root of your ceph checkout 'git commit src/rocksdb' will update the sha1 the rocksdb submodule references).

'mmmm,

If I look in ceph/rocksdb at github thru the filebrowser, the commit I made is actually in this tree. So I guess I should be getting it. So I guess I'm going to start recloning my sources...

--WjW

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
Quoted 6 lines · Tone Zhang

Hi,

Thanks a lot!
So synchronise the submodule code is a little pain. We have to synchronise the code manually when we found we have been behind the upstream so much. :)

I also now want to unbreak the aarch64 build, so will be trying to usher this along.