-
Notifications
You must be signed in to change notification settings - Fork 473
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
Rebase postgres branch on master #2398
base: master
Are you sure you want to change the base?
Rebase postgres branch on master #2398
Conversation
…ing it to mpt imap test - The PostgresMailboxSessionMapperFactoryTODO was created independent of PostgresMailboxSessionMapperFactory for development. We need to remove MapperFactory, and rename MapperFactoryTODO -> MapperFactory when all dependencies already.
…dSafetyTest We do not control directly r2dbc-postgresql Connection but library owner, thus we can do nothing upon tests failure. But we can handle library failure at James layer using PostgresExecutor wrapper.
PreparedStatement id is unique per PG connection. We share a PG connection across multi threads leads to PreparedStatement id conflicts. We can retry upon PreparedStatement id conflicts.
…ct exception io.r2dbc.postgresql.ExceptionFactory$PostgresqlBadGrammarException: [42P05] prepared statement "S_0" already exists Should not retry upon other fatal exception e.g. database failure, invalid authorization...
Runs 41 tests more onto the PostgresMailboxManager
We generate a unique UUID so this is supported. Note that turns 5 tests on in the PostgresMailboxManager test suite.
- Use single query to database for fetch total + total unseen The query looks like: select count(*) as "total_count", count(*) filter (where is_seen = $1) as "unseen_count" from message_mailbox where mailbox_id = cast($2 as uuid)
- It is a why make lack of test case when run the test (jpaGuiceServerShouldUpdateQuota)
…ase sql validation - It was created for JPA, with Postgresql we don't need it. (instead of mark @disabled for it)
Fixed by JAMES-2586 Small codestyle refactorings.
…lict Otherwise, we could retry on other fatal errors like: io.r2dbc.postgresql.ExceptionFactory$PostgresqlBadGrammarException: column "domain" of relation "mailbox" already exists.
…olicy before alter the table
… and email_change
…MailboxMapper -create new table MailboxMember (username, mailbox_id) -create dao for new table -create RLSSupportPostgresMailboxMapper to use MailboxMember -update bindings to use RLSSupportPostgresMailboxMapper in case rls is enabled
…gresMailboxMapper - create index for mailbox_acl column in case rls is disabled - update findNonPersonalMailboxes method in PostgresMailboxMapper and PostgresMailboxDAO
…thod - Update AdditionalAlterQuery in PostgresTable - check if upsertACL actually successful - replace batch method - remove duplicated code in PostgresMailboxMapper and RLSSupportPostgresMailboxMapper
…ipeline - Update: disabled for cassandra weakWrite
test failed, and CassandraJamesServerMain was mark as deprecated, and will be removed in the future.
…abbitmq-object-storage
…ds documentation page
08:03:05,640 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project blob-postgres: Compilation failure |
@hungphan227 please rebase latest master |
I will continue this work at pr: #2467 |
NO MERGE