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

NRF crash issue fix #24

Merged
merged 4 commits into from
Jan 24, 2023
Merged

Conversation

vthiruveedula
Copy link
Contributor

No description provided.

MongoDBLibrary.SetMongoDB(setdbName, url)
if MongoDBLibrary.Client != nil {
dbc.Client = MongoDBLibrary.Client
dbc.dbName = setdbName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use new DB library now.

Copy link
Contributor Author

@vthiruveedula vthiruveedula Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

util/mongoapi used. as per this library modifications are more. please go through changes

client := &http.Client{}
_, err = client.Do(req)
if err != nil {
fmt.Println("Errored when sending request to the server")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets print the error here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@@ -2,14 +2,16 @@ module github.com/omec-project/nrf

go 1.16

replace github.com/omec-project/nrf => ./
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this before merging right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its ok to keep i think

@@ -284,6 +286,19 @@ func NFDeregisterProcedure(nfInstanceID string) (problemDetails *models.ProblemD
return nil
}

func sendNFDownNotification(nfProfile models.NfProfile, nfInstanceID string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this part of the spec notification model or a different API?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its different API which i added to delete the keepalive entry of deregistred/crash pod from DB

@vthiruveedula vthiruveedula force-pushed the master branch 3 times, most recently from aaf7b79 to 56c7bf4 Compare January 11, 2023 13:18
       1. change owner of chunkids which were owned by
          crash/deregistered pod
stop sending profile update notifications
Copy link
Contributor

@badhrinathpa badhrinathpa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@badhrinathpa badhrinathpa merged commit a8e60e0 into omec-project:master Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants