-
Notifications
You must be signed in to change notification settings - Fork 244
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
component is left in broken state after redeployment of the pod #3838
Comments
The problem is in the sync code. After the storage is mounted, the pod is restarted and source code files are lost. Any command which causes the pod to restart will break the component. |
is it related with this #3409?? |
I don't think so, that bug was causing the redeployment. Here the issue is about the syncing after a redeployment not being handled by the sync adapter. |
I'm hitting this issue too, without using It seems syncing is entirely broken whenever a component is restarted on a push (with or without the It seems odo is no longer determining when it needs to bypass the I think the reason why this is happening is because we're no longer resetting the index file on a force push: In my opinion, this should be high priority given how visible it is, and it's a regression from v1.2.5 functionality /priority high |
Confirmed this is due to #3619 ... removing the index-removal code was intentional, but it looks like it regresses the 'sync after new pod' scenario as seen on this issue. In light of this issue, the correct behaviour for this logic should be:If force push is specified, and a new pod depoyed:
If force push is specified, and existing pod reused:
If force push is not specified, and new pod deployed:
If force push is not specified, and existing pod is reused:
New PR to do those things, plus an integration test to verify the behaviour: #3859 |
Assigning to myself since I introduced the behaviour (FYI @mik-dass , who is the current assignee) /assign |
/unassign @mik-dass |
…e pod (#3859) * Add additional logic and integration test * Respond to review comments * Respond to review comments
/kind bug
What versions of software are you using?
Operating System:
macOS
Output of
odo version
:▶ odo version
odo v1.2.5 (552aad7)
How did you run odo exactly?
Expected behavior
source code should be present in container and my application should be running after
odo push
Any logs, error output, etc?
build command while running
odo push
fails because the directory where the application source is supposed to be is empty.The text was updated successfully, but these errors were encountered: