alibaba

alibaba

Alibaba Open Source

Member Since 9 years ago

Hangzhou, China

Experience Points
0
follower
Lessons Completed
0
follow
Best Reply Awards
436
repos
Activity
May
23
7 hours ago
push

KomachiSion push alibaba/nacos

KomachiSion
KomachiSion

[ISSUES #8417] throw a HttpSessionRequiredException when sessions expired (#8419)

  • [ISSUE #8417] throw a HttpSessionRequiredException when sessions expired

  • [ISSUE #8417] add unit test

  • [ISSUE #8417] repackage

Close #8417

commit sha: d6f27409a68163bd297027fd5f4a612a6d5202db

push time in 1 minute ago
Activity icon
issue

KomachiSion issue alibaba/nacos

KomachiSion
KomachiSion

nacos权限认证失败,直接弹出到登陆界面

image

点击后,告诉我没权限,直接弹出到登陆页面。。

nacos-server-2.1.0版本

pull request

KomachiSion pull request alibaba/nacos

KomachiSion
KomachiSion

[ISSUES #8417] throw a HttpSessionRequiredException when sessions expired

Close #8417

What is the purpose of the change

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
pull request

KomachiSion merge to alibaba/nacos

KomachiSion
KomachiSion

[ISSUES #8417] throw a HttpSessionRequiredException when sessions expired

Close #8417

What is the purpose of the change

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
Activity icon
issue

jinliangli issue alibaba/AliOS-Things

jinliangli
jinliangli

[Bug Report]: Python 酒驾案例 警报不会解除

Contact Details

No response

What happened?

A bug happened! 运行环境: 固件版本:

Version

master (Default)

What soultions are you seeing the problem on?

No response

Relevant log output

No response

Activity icon
issue

jinliangli issue comment alibaba/AliOS-Things

jinliangli
jinliangli

[Bug Report]: Python 酒驾案例 警报不会解除

Contact Details

No response

What happened?

A bug happened! 运行环境: 固件版本:

Version

master (Default)

What soultions are you seeing the problem on?

No response

Relevant log output

No response

started
started time in 2 minutes ago
Activity icon
issue

Troy-2015 issue comment alibaba/spring-cloud-alibaba

Troy-2015
Troy-2015

Nacos Discovery couldn't deregister a permanent instance when application shutdown gracefully

Which Component Nacos Discovery

Version

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
	<version>2021.0.1.0</version>
</dependency>

Describe the bug When I run my application and register my service instance with the config spring.cloud.nacos.discovery.ephemeral=false, by which indicates that it's a permanent service. But when I shutdown the application gracefully, the console shows that it deregisters the instance: 2022-03-28 14:22:04.197 INFO 19248 --- [ionShutdownHook] c.a.c.n.registry.NacosServiceRegistry : De-registering from Nacos Server now... 2022-03-28 14:22:04.216 INFO 19248 --- [ionShutdownHook] c.a.c.n.registry.NacosServiceRegistry : De-registration finished.

Yet it turns out doesn't deregister the instance.

I've checked the deregister code:

com.alibaba.cloud.nacos.registry.NacosServiceRegistry#deregister(Registration registration)
	@Override
	public void deregister(Registration registration) {

		...

		NamingService namingService = namingService();
		String serviceId = registration.getServiceId();
		String group = nacosDiscoveryProperties.getGroup();

		try {
			namingService.deregisterInstance(serviceId, group, registration.getHost(),
					registration.getPort(), nacosDiscoveryProperties.getClusterName());
		}
		catch (Exception e) {
			...
		}

		...
	}
com.alibaba.nacos.client.naming.NacosNamingService#deregisterInstance(String serviceName, String groupName, String ip, int port, String clusterName)
    @Override
    public void deregisterInstance(String serviceName, String groupName, String ip, int port, String clusterName)
            throws NacosException {
        Instance instance = new Instance();
        instance.setIp(ip);
        instance.setPort(port);
        instance.setClusterName(clusterName);
        
        deregisterInstance(serviceName, groupName, instance);
    }

When the application shutdown gracefully, it triggers the deregister instance event. But it doesn't pass the ephemeral param to the deregisterInstance function, and the ephemeral field in com.alibaba.nacos.api.naming.pojo.Instance defaults as true, which causes the bug.

push

KomachiSion push alibaba/nacos

KomachiSion
KomachiSion

optimize IoUtils and Add some unit test (#8398)

  • optimize IoUtils and Add some unit test

reformat codes

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

fix Too many unapproved license issue

  • fix test case issue

  • fix test case issue

commit sha: 89a0f89a8b9c9d97563c78d86f07e758d143fa2d

push time in 2 minutes ago
pull request

KomachiSion pull request alibaba/nacos

KomachiSion
KomachiSion

optimize IoUtils and Add some unit test

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

XXXXX

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
pull request

KomachiSion merge to alibaba/nacos

KomachiSion
KomachiSion

optimize IoUtils and Add some unit test

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

XXXXX

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
started
started time in 3 minutes ago
pull request

KomachiSion pull request alibaba/nacos

KomachiSion
KomachiSion

[ISSUE #8407] Remove whitespace

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

  • Close #8407
  • Fix circular dependency
  • Fix failed UT

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
pull request

KomachiSion merge to alibaba/nacos

KomachiSion
KomachiSion

[ISSUE #8407] Remove whitespace

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

  • Close #8407
  • Fix circular dependency
  • Fix failed UT

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
Activity icon
issue

KomachiSion issue comment alibaba/nacos

KomachiSion
KomachiSion

Update permission.java

Removing unwanted colons.

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

XXXXX

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.
KomachiSion
KomachiSion

CI and IT can't pass. Please fix them.

Activity icon
fork

rm-f1024 forked alibaba/kiwi

⚡ 🐤 Kiwi-国际化翻译全流程解决方案
rm-f1024 Updated
fork time in 5 minutes ago
started
started time in 6 minutes ago
started
started time in 6 minutes ago
Activity icon
fork

rocyuan666 forked alibaba/druid

⚡ 阿里云计算平台DataWorks(https://help.aliyun.com/document_detail/137663.html) 团队出品,为监控而生的数据库连接池
rocyuan666 Apache License 2.0 Updated
fork time in 7 minutes ago
started
started time in 7 minutes ago
Activity icon
issue

logan2013 issue alibaba/fastjson2

logan2013
logan2013

[BUG] 解决/v2/api-docs获取不到内容导致获取不到API页面内容的问题

问题描述

简要描述您碰到的问题。

环境信息

请填写以下信息:

  • OS信息: [e.g.:CentOS 8.4.2105 4Core 3.10GHz 16 GB]
  • JDK信息: [e.g.:Openjdk 1.8.0_312]
  • 版本信息:[e.g.:Fastjson2 2.x.x]

重现步骤

如何操作可以重现该问题:

  1. 使用 xxx.xxx 方法
  2. 输入 ... 数据
  3. 出现 ... 错误
//可在此输入示例代码

期待的正确结果

对您期望发生的结果进行清晰简洁的描述。

相关日志输出

请复制并粘贴任何相关的日志输出。

附加信息

如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。

started
started time in 7 minutes ago
started
started time in 8 minutes ago
Activity icon
issue

codeskyblue issue comment alibaba/taobao-iphone-device

codeskyblue
codeskyblue

启动wda报错

tidevice version: 0.7.13 iOS: 14.7

15:27:17 Traceback (most recent call last):
15:27:17   File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
15:27:17     return _run_code(code, main_globals, None,
15:27:17   File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
15:27:17     exec(code, run_globals)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/__main__.py", line 871, in <module>
15:27:17     main()
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/__main__.py", line 866, in main
15:27:17     actions[args.subparser](args)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/__main__.py", line 259, in cmd_xctest
15:27:17     d.xctest(args.bundle_id,
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 970, in xctest
15:27:17     return self.xcuitest(bundle_id, target_bundle_id=target_bundle_id, logger=logger, env=env)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 1057, in xcuitest
15:27:17     _, pid = self._launch_app_runner(bundle_id, session_identifier,
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 847, in _launch_app_runner
15:27:17     conn = self.connect_instruments()
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 800, in connect_instruments
15:27:17     conn = self.start_service(
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 492, in start_service
15:27:17     return self._unsafe_start_service(name)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 528, in _unsafe_start_service
15:27:17     conn = self.create_inner_connection(data['Port'], _ssl=_ssl, ssl_dial_only=ssl_dial_only)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 306, in create_inner_connection
15:27:17     conn.switch_to_ssl(self.ssl_pemfile_path)
15:27:17   File "/usr/local/lib/python3.9/site-packages/tidevice/_safe_socket.py", line 132, in switch_to_ssl
15:27:17     ssock = context.wrap_socket(self._sock, server_hostname="iphone.localhost")
15:27:17   File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 500, in wrap_socket
15:27:17     return self.sslsocket_class._create(
15:27:17   File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1040, in _create
15:27:17     self.do_handshake()
15:27:17   File "/usr/local/Cellar/[email protected]/3.9.7/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ssl.py", line 1309, in do_handshake
15:27:17     self._sslobj.do_handshake()
15:27:17 socket.timeout: _ssl.c:1112: The handshake operation timed out
codeskyblue
codeskyblue

我也不知道咋回事,以前查了好久,查出来一个socket连接没释放的问题,使用weakref修复好了之后。出现的概率低了。不过还是会出来。我也就只能重启手机了

started
started time in 9 minutes ago
open pull request

Cathy0908 wants to merge alibaba/EasyCV

Cathy0908
Cathy0908

YOLOX End2end & Blade Support

Wrap the export process with End2endModelExportWrapper. We support the export version of 'jit' and 'blade'.

One can choose whether to end2end export a model with a little bit more time cost.

For more details of blade, you can refer to https://help.aliyun.com/document_detail/205134.html

  1. By exporting an end2end model, we speed up yoloxs from 54fps to 160fps on 1080Ti.
image
  1. By wrapping only the forward process, we speed up yoloxs from 53fps to 174fps on 1080Ti.
C139A495-AE13-4A22-A67B-E077D950220C
Cathy0908
Cathy0908

All cases should be tested, including end2end、 without end2end、with blade、raw and so on

open pull request

Cathy0908 wants to merge alibaba/EasyCV

Cathy0908
Cathy0908

YOLOX End2end & Blade Support

Wrap the export process with End2endModelExportWrapper. We support the export version of 'jit' and 'blade'.

One can choose whether to end2end export a model with a little bit more time cost.

For more details of blade, you can refer to https://help.aliyun.com/document_detail/205134.html

  1. By exporting an end2end model, we speed up yoloxs from 54fps to 160fps on 1080Ti.
image
  1. By wrapping only the forward process, we speed up yoloxs from 53fps to 174fps on 1080Ti.
C139A495-AE13-4A22-A67B-E077D950220C
Cathy0908
Cathy0908

revert changes to this file

open pull request

Cathy0908 wants to merge alibaba/EasyCV

Cathy0908
Cathy0908

YOLOX End2end & Blade Support

Wrap the export process with End2endModelExportWrapper. We support the export version of 'jit' and 'blade'.

One can choose whether to end2end export a model with a little bit more time cost.

For more details of blade, you can refer to https://help.aliyun.com/document_detail/205134.html

  1. By exporting an end2end model, we speed up yoloxs from 54fps to 160fps on 1080Ti.
image
  1. By wrapping only the forward process, we speed up yoloxs from 53fps to 174fps on 1080Ti.
C139A495-AE13-4A22-A67B-E077D950220C
Cathy0908
Cathy0908

The return values of detection_boxes,detection_scores,detection_classes should be fixed, please add the check of return values

Previous