Skip to content
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

Fix make this ms runable #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

GitHubDiom
Copy link

No description provided.

1. mongo v6.0 deprecates the OP_QUERY call
1. New version of OpenFaaS deprecates the Java8 template making the functions unable to build
1. Since the env var ${MASTER_IP} doesn't work in here
@GitHubDiom
Copy link
Author

看起来这个版本年久失修,这两天运行了下,主要问题有:

  1. OpenFaaS启用了Java8的模板,这个问题通过手动获取JAVA8模板解决了
  2. Mongo镜像更新到6.0+之后弃用了OP_QUERY,导致数据库pod会出现500,这个问题通过制定Mongo镜像版本为4.4解决了
  3. 另外就是在yaml文件读取MASTER_IP和DOCKER_USERNAME来构建函数
  4. K8S好像在配置NFS的时候用不了第三点,所以目前还是通过固定IP来连接NFS服务器

This is because the lack of nginx configuration on cancle-ticket request
1. add nginx configuration of cancel-ticekt API
2. customize docker image: `diomwu/serverless_tt_frontend:nginx-update`
@@ -58,6 +61,9 @@ public static <T> T json2Object(String json, Class<T> cls) {
ObjectMapper objectMapper = new ObjectMapper();
result = objectMapper.readValue(json, cls);
} catch (IOException e) {
e.printStackTrace();
System.out.println("e.getMessage="+e.getMessage());
Copy link

Choose a reason for hiding this comment

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

您好,在做实验的时候,此处突然报错e.getMessage=No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
e=com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
但之前查询车票没有问题,不知是什么原因。尝试打印了这里的json也没什么问题。您在这里做了修复,请问是也遇到过这种情况吗,如何解决呢

Copy link
Author

Choose a reason for hiding this comment

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

印象中这个原因是因为下游函数返回空值导致的,get-left-trip-tickets这个函数有很多下游函数,可以看看下游函数的执行情况。打印了json没什么问题是result得到预期结果的意思吗?

@@ -58,6 +61,9 @@ public static <T> T json2Object(String json, Class<T> cls) {
ObjectMapper objectMapper = new ObjectMapper();
result = objectMapper.readValue(json, cls);
} catch (IOException e) {
e.printStackTrace();
System.out.println("e.getMessage="+e.getMessage());
Copy link

Choose a reason for hiding this comment

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

您好,在做实验的时候,此处突然报错e.getMessage=No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
e=com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
at [Source: (String)""; line: 1, column: 0]
但之前查询车票没有问题,不知是什么原因。尝试打印了这里的json也没什么问题。您在这里做了修复,请问是也遇到过这种情况吗,如何解决呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants