Skip to content

Conversation

@Cerfoglg
Copy link
Contributor

fixes #11

func queryHandler(w http.ResponseWriter, r *http.Request) {
entryString := os.Getenv("MYSQL_USER")+":"+os.Getenv("MYSQL_USER_PASSWORD")+"@"+"tcp("+os.Getenv("MYSQL_HOST")+":3306)/"+os.Getenv("MYSQL_DB_NAME")
//entryString := os.Getenv("MYSQL_USER")+":"+os.Getenv("MYSQL_USER_PASSWORD")+"@"+"tcp("+os.Getenv("MYSQL_HOST")+":"+os.Getenv("MYSQL_PORT")+")/"+os.Getenv("MYSQL_DB_NAME")
entryString := "root:PASSWORD@tcp(dockerVM:3306)/stuff"
Copy link
Member

Choose a reason for hiding this comment

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

This is a test line

return
default:
stat := (<-container.statsChannel)
if(stat == nil) {panic("Received Nil from container")}
Copy link
Member

Choose a reason for hiding this comment

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

Why this require a panic error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VincenzoFerme Because a nil means the socket isn't receiving anything, which seems to imply something has gone seriously wrong with the docker socket.

Copy link
Member

Choose a reason for hiding this comment

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

@Cerfoglg Can this happen during the execution or only when the execution starts? I guess the first, right? If that is the case I would say we need a better way to handle this error, by reporting the status to the client.

VincenzoFerme added a commit that referenced this pull request Feb 25, 2016
@VincenzoFerme VincenzoFerme merged commit fa6a1fe into benchflow:dev Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Enable all the Monitors

2 participants