This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 正在找一个公司软件产品的bug。请大家出出主意。有一个用户提出的urgent bug,经理让我修复。问题是:在自己的机器上根本不能复制这个错误。 尝试了很多次, 运行的结果都正确。但是客户总说他们在生产机上运行出错。经理不允许debug生产机(虽然这样很容易发现错误在哪里)。又不允许把数据库里的数据导到我的本地机上/。。甚至不允许我启动生产机上的log文件。在这样的情况下,哪位DX还有好办法发现错误所在?谢谢。
-choice(水中花);
2005-12-5
{341}
(#2644480@0)
-
IMPOSSIBLE MISSION?
-septasks(SEPT.);
2005-12-5
(#2644490@0)
-
不知道。最起码是很难。
-choice(水中花);
2005-12-6
(#2646741@0)
-
What kind of product? What kind of bug?
-sfsun(峰);
2005-12-5
(#2644519@0)
-
web-based product. bug 是用户不能正常地删除三条记录(可是,奇怪的是。 一共让它删掉四条记录,第一条是正确地被删除掉了。(当然不是简简单单地delete 四条记录) 而是通过四个相似的文本文件读入,然后,根据文本文件中的信息,标志些信息。后台有一个Deamon程序在再根据标志信息定期删除一些信息。))我的机器上可以正确地删除四条记录。完完全全同样的操作。
-choice(水中花);
2005-12-5
{218}
(#2644629@0)
-
File permission?
-sfsun(峰);
2005-12-5
(#2644757@0)
-
谢谢回答。不会的。同一个File其它的记录可进行读出并根据读出的记录插入相应的数据到数据库中。
-choice(水中花);
2005-12-6
(#2646758@0)
-
Timing problem? Where do you keep the flag or marks? How do you know whether the flag is marked? How long will the flag last?
-randomwalk(戒网难不难,难!);
2005-12-5
(#2646178@0)
-
Flag is stored as a field in a table of the Database.
-choice(水中花);
2005-12-6
(#2646777@0)
-
your software does not generate its own log file?I take it that you are the 3rd level help desk support.
least there should have some addtional data can be made available to u.
Was it an error or application failure?
if it is an error, work with the original develop team in this particular case. b4 doing this, consult ur manager and QA team lead.
if u r the developer, you should have known this would come back and bite u , :D,
-buma(buma);
2005-12-5
{386}
(#2644555@0)
-
Log file(for developer) shouldn't be allowed on production. Sometime we can develop a backdoor program to dynamiclly turn on/off development log file on production. But you have to get management approvel, or get fired.
-hahahaly(hahahaly);
2005-12-5
(#2644582@0)
-
Right.
-choice(水中花);
2005-12-5
(#2644630@0)
-
yes, if the product runs ok, there should be no logs regarding to the normal cases.however, when there are errors, there should be an log file or should I call it an .error file, it should dump least some information to help track/fallback the transaction.
BTW, what happened with LZ's case, I want to know the solutions.
-buma(buma);
2005-12-8
{243}
(#2651008@0)
-
You have to ask QA to help you to set up similar business test case first. Data might cause the error due to your programming defect. For production, there is no way to let you to 'Debug', 'Log' etc.
-hahahaly(hahahaly);
2005-12-5
(#2644566@0)
-
Yes. But I can not copy the data on the product machine to my machine because of security rules, so even the QA can not reproduce the problem on her machine.
-choice(水中花);
2005-12-5
(#2644662@0)
-
That's what the QA should do.
-benlin(默默向上游);
2005-12-5
{677}
(#2646181@0)
-
Thanks for your response. The QA can not reproduce the problem.
-choice(水中花);
2005-12-6
(#2646797@0)
-
maybe because the sql where condition is same for the first deleted record and one of thoese tree recoreds. Details inside1. Using the wrong deleted recored reverse back the condition or keyword could cause this operation.
2. Check the text file if there has some releated infomation.
3. Check those 3 right deleted records, to see if possible one of them could has same keyword with the record which was deleted wrong.
Take some assumptions, try do not guess. Thinking from differnet ways
-nealzhao(neal);
2005-12-5
{372}
(#2644773@0)
-
What do you mean keyword here? Thanks.
-choice(水中花);
2005-12-6
(#2646810@0)
-
Is there any record in other table depends on the record that you can not delete?
like foreign key.
-irenehan(Happy);
2005-12-5
(#2646120@0)
-
Thanks. No, there are no such tables.
-choice(水中花);
2005-12-6
(#2646813@0)
-
我的经验是反复仔细读删除纪录的这段程序,找出可能的错误。
-liuy2k68(华山练剑);
2005-12-6
(#2646901@0)
-
还没有看出来。
-choice(水中花);
2005-12-6
(#2647222@0)
-
换个人看。自己的错误往往自己很难发现。
-holdon(again);
2005-12-6
(#2647275@0)
-
握手。我遇到过同样的事情,我不得把近百万的record input into my test server.finally, we trap the error. Simply speaking, the error can happen only when number of record exceeds a certain value. debug is expensive.
-elecskunk(elecskunk);
2005-12-6
(#2647007@0)
-
Thanks. You are luck. My manager does not allow me to copy the records on the product machine because of the security reason.
-choice(水中花);
2005-12-6
(#2647223@0)
-
全是信用卡账号?那你不发了。
-holdon(again);
2005-12-6
(#2647278@0)
-
好悬没cc number, 也没发了。再支一招,shundown product server for system service at christmas eve, and wish you have a 有意义的圣诞夜
-elecskunk(elecskunk);
2005-12-6
(#2647372@0)
-
Look through the "product" computer, it may have different setup.
-sfsun(峰);
2005-12-6
(#2647253@0)
-
Next time, the program should have more "Exception Management ",
-sfsun(峰);
2005-12-6
(#2647256@0)
-
you should provide a bit detail about your problm, such as file record sample and logic, otherwise, it is very hard for other to helpBTW, ask you customer to provide full log. It is unreasonable for you not to be able to get the log files., you can ask them to remove any sensitive information they concern about. Bottom line, you NEED log file to troubleshoot/debug!
-3hohoho(hohoho);
2005-12-6
{234}
(#2647946@0)