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

downgrade gorm.io/driver/postgres to 1.5.2 #2907

Closed
pbannykh opened this issue Nov 29, 2023 · 6 comments
Closed

downgrade gorm.io/driver/postgres to 1.5.2 #2907

pbannykh opened this issue Nov 29, 2023 · 6 comments
Labels

Comments

@pbannykh
Copy link
Contributor

Bug report:

Updating gorm.io/driver/postgres from 1.5.2 to 1.5.3, as well as 1.5.4, broke registration of schedulers.
Log: table name "scheduler" specified more than once.

Expected behavior:

downgrade gorm.io/driver/postgres to 1.5.2

How to reproduce it:

Use postgresql, add more than one scheduler

Environment:

  • Dragonfly version: 2.1.17 - 2.1.23
  • OS: linux
  • Kernel (e.g. uname -a): 6.1.27-1
  • Others: kubernetes
@PKizzle
Copy link

PKizzle commented Nov 29, 2023

Is this a bug introduced at gorm.io/driver/postgres with version 1.5.3 or are code changes required in the Dragonfly2 project?

@gaius-qi
Copy link
Member

Is this a bug introduced at gorm.io/driver/postgres with version 1.5.3 or are code changes required in the Dragonfly2 project?

@pbannykh

@PKizzle
Copy link

PKizzle commented Dec 11, 2023

@gaius-qi Since there seem to be other issues with gorm.io/driver/postgres versions 1.5.3 and newer would it be possible to downgrade it to 1.5.2 until fixed?
For example: go-gorm/postgres#225

I can not tell whether this specific issue of a table name being specified more than once is something that needs to be fixed in this project or in the gorm postgres driver. However, all releases of Dragonfly since 2.1.16 contain a non functioning driver version and are broken for postgres users. For the time being I highly recommend to downgrade the dependency should there not be another reason for keeping the newer version.

@gaius-qi
Copy link
Member

@gaius-qi Since there seem to be other issues with gorm.io/driver/postgres versions 1.5.3 and newer would it be possible to downgrade it to 1.5.2 until fixed? For example: go-gorm/postgres#225

I can not tell whether this specific issue of a table name being specified more than once is something that needs to be fixed in this project or in the gorm postgres driver. However, all releases of Dragonfly since 2.1.16 contain a non functioning driver version and are broken for postgres users. For the time being I highly recommend to downgrade the dependency should there not be another reason for keeping the newer version.

@PKizzle Thanks!

@gaius-qi gaius-qi reopened this Dec 13, 2023
@gaius-qi
Copy link
Member

@pbannykh @PKizzle I have released new version v2.1.25.

@chisaato
Copy link
Contributor

chisaato commented May 19, 2024

类似的问题在 2.1.45 上又出现了
image
image

根据 Release 的 changelog 我选择降级到 2.1.35 没有这个错误了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants