[Gobblin-872][GOBBLIN-872] Only use one CouchbaseEnvironment instane per JVM
Closes from ZihanLi58/Couchbase
@@ -57,7 +57,8 @@ public class CouchbaseEnvironmentFactory {
if (couchbaseEnvironment == null)
{
- return builder.build();
+ couchbaseEnvironment = builder.build();
+ return couchbaseEnvironment;
}
else {
return couchbaseEnvironment;
