当前位置:网站首页>Failed to virtualize table with JMeter
Failed to virtualize table with JMeter
2022-07-05 18:03:00 【Ben returns from flying goose treading the snow】
We often use Jmeter Tools , Put the manual operation of East and West points on the browser , Write a script , convenient CI/CD Test the new version in the process , In this way, you can avoid manual operation for each version iteration .
Recently in automation IBM Of CP4D Of Data Virtualization When this function , Encountered a problem that took a lot of effort to find the root , Record here , Also share with you .
problem : In the brand new cluster Up operation Jmeter Script , Often in virtualize table An error occurred in this step , An error is as follows .
{
"code": 500,
"message": "Error: CHECK TABLE EXISTENCE -- DB2 SQL Error: SQLCODE=-552, SQLSTATE=42502, SQLERRMC=USER101;IMPLICIT CREATE SCHEMA, DRIVER=4.31.10"
}When the script reports an error , I will carefully observe the errors in the script first , Also look at the wrong one request Previous request See if there is something wrong ; Without a clue, I'll do the same operation on the same data in the browser , See if there is no problem on the browser . In this way, I can judge whether it is a script problem or cluster There is a problem .
First , Check the script for errors http request, Include sampler result,request body,request header,response body. especially request body and request header, Make sure nothing is wrong . How to ensure that nothing is wrong ? The most direct way , It is when you do the same operation on the browser that you open the browser Inspect function , Go to the Network This column , You can observe the specific content when operating on the browser . I use it Firefox browser , Pictured , Right click on the browser page , choice Inspect, Then select Network. From this point on , All operations on the browser will be recorded in Network in . So I can see the details in virtualize table All the details of this step , So I can compare it with the script , To ensure accuracy .

Check it out , Nothing different , That is to say, these details are all right . It also shows that there is no problem in browser operation , explain cluster That's all right. , The problem must be in the script . What's the problem ?
I tried to run the script again , Found no problem ! Then delete all data , Include connection、virtualized data、data asset, Run the script again , No problem ! I feel confused .
I want to delete DV instance Start over again , Because creating DV instance It takes a lot of time , It usually takes more than an hour to ready. However, in order to verify the script, I deleted DV instance, Run the script again from the beginning , Including the creation of DV instance.
Okay , The problem arises again ... I feel puzzled and feel puzzled , But I suspect that my operation on the browser may leave something behind , And this thing happens to be sending virtualize table This http request When you need it . How to verify ?
I opened the browser again Inspect, do virtualize table The operation of , Then check it out Network One by one request. I found one create schema Of request, This is a POST, But I didn't create it manually in the browser schema. That is to say , When the browser does not find the autofill schema When , Automatically sent a POST request To create schema. Is it the mistake caused by missing this step ? Look at the error report ,IMPLICIT CREATE SCHEMA, It's true schema of .
therefore , I quickly in Jmeter Add a judgment to the script , Such as schema Nonexistence POST request To create schema. After adjustment , Delete DV instance, Run script , Sure enough, there is no mistake .


Looking back , This kind of problem is actually quite secret , Because when writing scripts , Generally, it is combined with browser , Operate on the browser , then request Moved to Jmeter in , It is likely that some hidden automatic operation will be missed , And after missing, in the same cluster I can't see the problem in the script , This is the deepest place to hide . therefore , The best way is , In the brand new cluster in , When operating on the browser for the first time , Just use Jmeter Recording function of , Put all the request All recorded , Then select relevant and meaningful ones one by one request. Next I'll talk about how to use Jmeter Recording script .
边栏推荐
- Penetrate the whole intranet through socks agent
- 星环科技数据安全管理平台 Defensor重磅发布
- [BeanShell] there are many ways to write data locally
- Le cours d'apprentissage de la machine 2022 de l'équipe Wunda arrive.
- OpenShift常用管理命令杂记
- How awesome is the architecture of "12306"?
- 集群部署如何解决海量视频接入与大并发需求?
- 寻找第k小元素 前k小元素 select_k
- EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
- Please tell me why some tables can find data by writing SQL, but they can't be found in the data map, and the table structure can't be found
猜你喜欢

U-Net: Convolutional Networks for Biomedical Images Segmentation

What are the changes in the 2022 PMP Exam?

"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications

Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!

Configure pytorch environment in Anaconda - win10 system (small white packet meeting)

GFS分布式文件系统

Privacy computing helps secure data circulation and sharing

JVM第三话 -- JVM性能调优实战和高频面试题记录

PMP认证需具备哪些条件啊?费用多少啊?

Elk log analysis system
随机推荐
[paddleclas] common commands
EPM相关
Leetcode daily practice: rotating arrays
模拟百囚徒问题
Redis Foundation
Is it safe to open an account online? What is the general interest rate of securities financing?
Tkinter window preload
Size_ T is unsigned
较文心损失一点点性能提升很多
Binder开辟线程数过多导致主线程ANR异常
Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
多线程(一) 进程与线程
Action avant ou après l'enregistrement du message teamcenter
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
每日一练:关于日期的一系列
LeetCode 练习——206. 反转链表
Career advancement Guide: recommended books for people in big factories
ITK Example
[performance test] full link voltage test
Gimp 2.10 tutorial "suggestions collection"