-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
dbadapter/dbadapter.go
Outdated
MongoDBLibrary.SetMongoDB(setdbName, url) | ||
if MongoDBLibrary.Client != nil { | ||
dbc.Client = MongoDBLibrary.Client | ||
dbc.dbName = setdbName |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
producer/nf_management.go
Outdated
client := &http.Client{} | ||
_, err = client.Do(req) | ||
if err != nil { | ||
fmt.Println("Errored when sending request to the server") |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 => ./ |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
aaf7b79
to
56c7bf4
Compare
1. change owner of chunkids which were owned by crash/deregistered pod stop sending profile update notifications
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
No description provided.