Self-contained reproduction for a driver bug: ExecuteQuery with
ExecuteQueryWithImpersonatedUser and no explicit database resolves the
impersonated user's home database correctly on the first query, but after the
routing table's TTL expires, subsequent queries resolve the authenticated
user's home database instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/rand" | |
| "encoding/base64" | |
| "io" | |
| "log" | |
| "net/http" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| DYNAMO_DB=$HOME/Tools/dynamodb | |
| cd $HOME/Tools | |
| mkdir -p dynamodb | |
| cd dynamodb | |
| wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest | |
| tar -xvzf dynamodb_local_latest |