You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install dynamo-db-local with version 8.1.1 (same issue with 9+ versions as well)
Try spawning with command java
Local instance never starts up
For reference, here the code how I spawn the instance:
if(commandExists('java')){console.debug('Starting local DynamoDB with Java');constpr=dynamoDBLocal.spawn({port: MAPPED_PORT,path: null,detached: false,});awaitwaitPort({host: 'localhost',port: MAPPED_PORT,});console.debug('Started local DynamoDB with Java');return{port: MAPPED_PORT,stop: async()=>{console.debug('Stopping local Java DynamoDB');try{awaitkillProcess(pr);}catch(e){console.error('Stopping local Java DynamoDB process not successful');throwe;}console.debug('Local Java DynamoDB stopped');},};}
I think the main difference between the v8.0 and v8.1 is this commit c17285a. It updates DynamoDB Local to v2.3.0. This update in itself updated the JDK.
Environment
Test case
dynamo-db-local
with version 8.0.0java
dynamo-db-local
with version 8.1.1 (same issue with 9+ versions as well)java
For reference, here the code how I spawn the instance:
https://github.com/goldstack/goldstack/blob/09810c61c34b39436420e64b72f86a29fa3d796b/workspaces/templates-lib/packages/template-dynamodb/src/localDynamoDB.ts#L142
The
waitPort
method never returns when using package > 8.0.0. Could this be related with the path lookup in package having changed?The text was updated successfully, but these errors were encountered: