On 16 Jun 2020, at 10:51, Sven Selberg <sven.s...@axis.com> wrote:In Gerrit 3.0 the main database is Note DB
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/e57f41c6-513d-4ed1-ae6f-da17c68f7528o%40googlegroups.com.
On 16 Jun 2020, at 10:51, Sven Selberg <sven....@axis.com> wrote:In Gerrit 3.0 the main database is Note DB… NoteDB is not a database either: I would say “Gerrit v3.0” doesn’t need any database as it stores all the information into the Git repository directly :-)
Luca.
and there's no need for a relational database (apart from the persistent caches).https://www.gerritcodereview.com/3.0.html#release-highlights
On Tuesday, June 16, 2020 at 11:43:58 AM UTC+2, anish anil wrote:Hello Gerrit Experts,Is there a compatibility matrix for gerrit when installed with Postgres SQL Server.We are on 2.15.6 and intending to upgrade to 3.0.9.We are currently using Postgres and I would like to know if there is a compatibility Matrix for each version.Like Postgress sql Version supported for 2.15.6Like Postgress sql Version supported for 2.16Like Postgress sql Version supported for 3.0Like Postgress sql Version supported for 3.08I checked the release and did not find anything in particular.Also, is there a upgrade path that needs to be followed and upgrade instructions???I just went through a whole lot of documentation which only states on the DB change -->From Review DB to Note DB is the change.Our Gerrit Instance was alwayz on Postgres SQL so will we need any additional steps.Is there relevant documentation that can be refereed????Thank you,Anish--
--
To unsubscribe, email rep...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
In Gerrit 3.0 the main database is Note DB and there's no need for a relational database (apart from the persistent caches).
H2, POSTGRESQL,
MARIADB, and MYSQLOn 16 Jun 2020, at 11:12, Sven Selberg <sven.s...@axis.com> wrote:
On Tuesday, June 16, 2020 at 11:57:33 AM UTC+2, lucamilanesio wrote:On 16 Jun 2020, at 10:51, Sven Selberg <sven....@axis.com> wrote:In Gerrit 3.0 the main database is Note DB… NoteDB is not a database either: I would say “Gerrit v3.0” doesn’t need any database as it stores all the information into the Git repository directly :-)I believe you have a too narrow definition of a database.
I think you mean "Gerrit doesn't need any external DBMS since it manages it's database by itself.".
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/32c96659-0fa3-417f-85ba-3d2c471eebf3o%40googlegroups.com.
On 16 Jun 2020, at 11:26, David Ostrovsky <david.o...@gmail.com> wrote:
Am Dienstag, 16. Juni 2020 11:51:15 UTC+2 schrieb Sven Selberg:In Gerrit 3.0 the main database is Note DB and there's no need for a relational database (apart from the persistent caches).This statement is not the whole truth. Gerrit 3.2 still requires databasebeside persistent caches: [1]:"The AccountPatchReviewDb is a database used to store the user file reviewed flags."As mentioned in the documentation: [1] the following dialects are supported:H2,POSTGRESQL,MARIADB, andMYSQL
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2b6ff8de-7d10-4148-9c2b-926688d919a9o%40googlegroups.com.
On 16 Jun 2020, at 11:26, David Ostrovsky <david.o...@gmail.com> wrote:
Am Dienstag, 16. Juni 2020 11:51:15 UTC+2 schrieb Sven Selberg:In Gerrit 3.0 the main database is Note DB and there's no need for a relational database (apart from the persistent caches).This statement is not the whole truth. Gerrit 3.2 still requires databasebeside persistent caches: [1]:"The AccountPatchReviewDb is a database used to store the user file reviewed flags."As mentioned in the documentation: [1] the following dialects are supported:H2,POSTGRESQL,MARIADB, andMYSQLYep, true. We discussed but never really agreed of where to put that information.It is the “last mile” of ReviewDb :-)Shall we tackle its removal in v3.3?Luca.
To unsubscribe, email rep...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
On 16 Jun 2020, at 11:40, Sven Selberg <sven.s...@axis.com> wrote:Forgot about accountPatchReviewDb.
I'm saying that Note DB is a database,
I'm not saying that Note DB is a Database Management System.I'm saying that Gerrit doesn't need an external DBMS since it effectively is it's own DBMS.
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/68611537-4dff-4385-a915-ccd4ebfefecbo%40googlegroups.com.
On 16 Jun 2020, at 11:40, Sven Selberg <sven.s...@axis.com> wrote:Forgot about accountPatchReviewDb.
I'm saying that Note DB is a database,Then also the Git repository is a database, right?I believe people will definitely get confused :-(I'm not saying that Note DB is a Database Management System.I'm saying that Gerrit doesn't need an external DBMS since it effectively is it's own DBMS.Again, people will get confused.When you say in a company “Gerrit has its down DBMS” people will start engaging with DBA and asking for you data-schema, the fact that needs to be compliant with the company policies as well.I hope people will use the mailing list as a source of information and I am trying to be very careful in not being ambiguous or misleading.NoteDb is a “JSON file format” we use in Gerrit to store the review meta-data, that’s it.If you look at NoteDb, it is a set of commits with JSON files inside the refs/changes/*/meta space, that’s it.If you show to people what is NoteDb, they will understand.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2F66A41A-53A9-4817-807F-04ADEE2CCE4F%40gmail.com.
On 16 Jun 2020, at 12:05, Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Jun 16, 2020 at 12:46 PM Luca Milanesio <luca.mi...@gmail.com> wrote:On 16 Jun 2020, at 11:40, Sven Selberg <sven.s...@axis.com> wrote:Forgot about accountPatchReviewDb.
I'm saying that Note DB is a database,Then also the Git repository is a database, right?I believe people will definitely get confused :-(I'm not saying that Note DB is a Database Management System.I'm saying that Gerrit doesn't need an external DBMS since it effectively is it's own DBMS.Again, people will get confused.When you say in a company “Gerrit has its down DBMS” people will start engaging with DBA and asking for you data-schema, the fact that needs to be compliant with the company policies as well.I hope people will use the mailing list as a source of information and I am trying to be very careful in not being ambiguous or misleading.NoteDb is a “JSON file format” we use in Gerrit to store the review meta-data, that’s it.If you look at NoteDb, it is a set of commits with JSON files inside the refs/changes/*/meta space, that’s it.If you show to people what is NoteDb, they will understand.I think git is a kind of a NoSQL database [1]. Gerrit's noteDB leverages that and uses git notes to also storeall the metadata it needs to implement code review (review comments, votes, users, groups, ...)in git
and adds indexes using lucene or elasticsearch to implement fast queries.
This option is more complicated than the H2 option but is recommended for larger installations. It’s the database backend with the largest userbase in the Gerrit community.
Create a user for the web application within PostgreSQL, assign it a password, create a database to store the metadata, and grant the user full rights on the newly created database:
Wow, This has confused me the most now,
Our current Version is 2.15.6 and we are using postgresql and we intend to upgrade to 3.0.9The current $GERRIT_HOME/etc/config file looks like the below:
*****************[database]
type = postgresql
hostname = gitdb02.ad.harman.com
database = dbhub
username = gerrit
connectionPool = true
poolLimit = 500
poolMaxWait = 120s
poolMaxIdle = 16
*******************Now I know that we moved to Note DB in 2.16 But couple of years back when we started off, we were using postgre sql DB and not the default Review DB provided in 2.15.This is as per the documentation link below:**********************PostgreSQL
This option is more complicated than the H2 option but is recommended for larger installations. It’s the database backend with the largest userbase in the Gerrit community.
Create a user for the web application within PostgreSQL, assign it a password, create a database to store the metadata, and grant the user full rights on the newly created database:
**********************Now, should be still switch to Note DB or stay on Posgresql as we have huge user base and nearly 5k+ ProjectsWhat should our migrate path be????
Thank you, But how do we really Migrate now ??????What happens to all the data in the postreSQL DB that we have???Is there a conversion from postgres to Note DB Which needs to be done???Do we have any documented steps that needs to tested and performed???
On 17 Jun 2020, at 08:25, Sven Selberg <sven.s...@axis.com> wrote:
On Tuesday, June 16, 2020 at 8:03:04 PM UTC+2, anish anil wrote:Thank you, But how do we really Migrate now ??????What happens to all the data in the postreSQL DB that we have???Is there a conversion from postgres to Note DB Which needs to be done???Do we have any documented steps that needs to tested and performed???I believe the safest route would be to upgrade to 2.16 as an intermediary step and do a full migration:https://www.gerritcodereview.com/2.16.html#migration-to-notedb
And once that is complete upgrade to v3.0.x. But there are probably others that have a better idea if this is necessary.On a different note. Have you considered upgrading to v3.2.x instead of 3.0.x?
On Tuesday, 16 June 2020 15:13:58 UTC+5:30, anish anil wrote:Hello Gerrit Experts,Is there a compatibility matrix for gerrit when installed with Postgres SQL Server.We are on 2.15.6 and intending to upgrade to 3.0.9.We are currently using Postgres and I would like to know if there is a compatibility Matrix for each version.Like Postgress sql Version supported for 2.15.6Like Postgress sql Version supported for 2.16Like Postgress sql Version supported for 3.0Like Postgress sql Version supported for 3.08
I checked the release and did not find anything in particular.Also, is there a upgrade path that needs to be followed and upgrade instructions???I just went through a whole lot of documentation which only states on the DB change -->From Review DB to Note DB is the change.Our Gerrit Instance was alwayz on Postgres SQL so will we need any additional steps.Is there relevant documentation that can be refereed????Thank you,Anish
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/0fcac944-1c7d-4878-955d-2f42d239e81ao%40googlegroups.com.
To unsubscribe, email rep...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-d...@googlegroups.com.
Okay guys, I have a question.If we host a stand alone gerrit v3.0.9 on a production , will it be okay not to use external database like PostgresSQL.Becuase , I did host a gerrit v3.0.9 with Postgress, It seems no data is being written in the Postgres.Will It be okay to get rid of the external database Server. If Gerrit v3.xx not require it any more.
On 16 Jul 2020, at 08:31, ravirajk...@gmail.com <ravirajk...@gmail.com> wrote:"A database is still needed to store the reviewed flag which remembers the status of the flag shownnext to each modified file in the change detail UI. The default is to use h2 for this, other options arepostgresql, mysql and mariadb."I see default is to use h2. Is there any advantage in using external DBMS or h2 is fine.
Is the data stored in this DB needed even after the change is submitted or it has entries only when the changes are in review?If it has to be stored for longer duration, is h2 recommended to be used?On Wednesday, 15 July 2020 at 22:19:59 UTC+5:30 Matthias Sohn wrote:On Wed, Jul 15, 2020 at 6:35 PM Shad Perwez <tech....@gmail.com> wrote:Okay guys, I have a question.If we host a stand alone gerrit v3.0.9 on a production , will it be okay not to use external database like PostgresSQL.Becuase , I did host a gerrit v3.0.9 with Postgress, It seems no data is being written in the Postgres.Will It be okay to get rid of the external database Server. If Gerrit v3.xx not require it any more.A database is still needed to store the reviewed flag which remembers the status of the flag shownnext to each modified file in the change detail UI. The default is to use h2 for this, other options arepostgresql, mysql and mariadb.Since Gerrit 3.0 all other data is stored in git and fast search access is implemented via Lucene or ElasticSearch index.-Matthias
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/9b1f8282-406c-421b-8080-707731a1aad6n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/52C91ED9-B947-45E5-9160-4415F0CCC656%40gmail.com.
Hi Luca,So if we want to have an external DB instead of the native H2. so what should be the [database] parameter on gerrit.config
Hi David,is it possible to put the DB password in secure.config for this config item?